func (s *environmentSuite) SetUpTest(c *gc.C) { s.JujuConnSuite.SetUpTest(c) stateAPI, _ := s.OpenAPIAsNewMachine(c) environmentAPI := stateAPI.Environment() c.Assert(environmentAPI, gc.NotNil) s.EnvironWatcherTests = apitesting.NewEnvironWatcherTests( environmentAPI, s.BackingState, apitesting.NoSecrets) }
func (s *stateSuite) SetUpTest(c *gc.C) { s.firewallerSuite.SetUpTest(c) s.EnvironWatcherTests = apitesting.NewEnvironWatcherTests(s.firewaller, s.BackingState, true) }