~rogpeppe/juju-core/492-sshinit-log-stdout

« back to all changes in this revision

Viewing changes to agent/tools_compat_test.go

  • Committer: John Arbash Meinel
  • Date: 2013-07-09 11:31:00 UTC
  • mto: (1384.3.6 upgrader-api-worker)
  • mto: This revision was merged to the branch mainline in revision 1419.
  • Revision ID: john@arbash-meinel.com-20130709113100-2mira0ti15p5nm67
Turn environs/agent into a top level agent/ package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
package agent_test
5
5
 
6
6
import (
7
 
        stdtesting "testing"
8
 
 
9
7
        gc "launchpad.net/gocheck"
10
8
 
 
9
        "launchpad.net/juju-core/agent"
11
10
        "launchpad.net/juju-core/state"
12
11
        coretesting "launchpad.net/juju-core/testing"
13
 
        "launchpad.net/juju-core/agent"
14
12
)
15
13
 
16
 
func TestPackage(t *stdtesting.T) {
17
 
        gc.TestingT(t)
18
 
}
19
 
 
20
 
var _ = gc.Suite(&ToolsSuite{})
21
 
 
22
 
type ToolsSuite struct {
 
14
var _ = gc.Suite(&ToolsCompatSuite{})
 
15
 
 
16
type ToolsCompatSuite struct {
23
17
        coretesting.LoggingSuite
24
18
}
25
19
 
26
 
func (s *ToolsSuite) TestToolsMatchStateTools(c *gc.C) {
 
20
func (s *ToolsCompatSuite) TestToolsMatchStateTools(c *gc.C) {
27
21
        testtools := agent.Tools{}
28
22
        statetools := state.Tools(testtools)
29
23
        testtools2 := agent.Tools(statetools)
30
24
        c.Assert(testtools, gc.Equals, testtools2)
31
25
}
32
26
 
33
 
func (s *ToolsSuite) TestToolPointers(c *gc.C) {
 
27
func (s *ToolsCompatSuite) TestToolPointers(c *gc.C) {
34
28
        testtools := &agent.Tools{}
35
29
        statetools := (*state.Tools)(testtools)
36
30
        testtools2 := (*agent.Tools)(statetools)