1
// Copyright 2014 Canonical Ltd.
2
// Licensed under the AGPLv3, see LICENCE file for details.
9
"github.com/juju/juju/api/agent"
10
apitesting "github.com/juju/juju/api/testing"
11
jujutesting "github.com/juju/juju/juju/testing"
14
type modelSuite struct {
15
jujutesting.JujuConnSuite
16
*apitesting.ModelWatcherTests
19
var _ = gc.Suite(&modelSuite{})
21
func (s *modelSuite) SetUpTest(c *gc.C) {
22
s.JujuConnSuite.SetUpTest(c)
24
stateAPI, _ := s.OpenAPIAsNewMachine(c)
26
agentAPI := agent.NewState(stateAPI)
27
c.Assert(agentAPI, gc.NotNil)
29
s.ModelWatcherTests = apitesting.NewModelWatcherTests(
30
agentAPI, s.BackingState, apitesting.NoSecrets)