func (s *networkerSuite) assertHaveConfig(c *gc.C, nw *networker.Networker, interfaceNames ...string) { for _, name := range interfaceNames { fullPath := nw.ConfigFile(name) _, err := os.Stat(fullPath) c.Assert(err, jc.ErrorIsNil) } }
func (s *networkerSuite) assertNoConfig(c *gc.C, nw *networker.Networker, interfaceNames ...string) { for _, name := range interfaceNames { fullPath := nw.ConfigFile(name) _, err := os.Stat(fullPath) c.Assert(err, jc.Satisfies, os.IsNotExist) } }