~rogpeppe/juju-core/438-local-instance-Addresses

« back to all changes in this revision

Viewing changes to environs/instances/image_test.go

  • Committer: Tarmac
  • Author(s): Tim Penhey
  • Date: 2013-09-20 03:21:56 UTC
  • mfrom: (1847.1.9 testbase)
  • Revision ID: tarmac-20130920032156-bdcdz4hd9jzpuim3
[r=thumper] Add a testbase package with no juju-core deps.

The base cleanup and logging suites are now there,
as are the patch functions.

A test also exists there to make sure that no juju-core
dependencies creep in.

https://codereview.appspot.com/13694046/

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
        "launchpad.net/juju-core/constraints"
12
12
        "launchpad.net/juju-core/environs/imagemetadata"
13
13
        "launchpad.net/juju-core/environs/simplestreams"
14
 
        coretesting "launchpad.net/juju-core/testing"
 
14
        "launchpad.net/juju-core/testing/testbase"
15
15
)
16
16
 
17
17
type imageSuite struct {
18
 
        coretesting.LoggingSuite
 
18
        testbase.LoggingSuite
19
19
}
20
20
 
21
21
func Test(t *testing.T) {
24
24
 
25
25
var _ = gc.Suite(&imageSuite{})
26
26
 
27
 
func (s *imageSuite) SetUpSuite(c *gc.C) {
28
 
        s.LoggingSuite.SetUpSuite(c)
29
 
}
30
 
 
31
 
func (s *imageSuite) TearDownSuite(c *gc.C) {
32
 
        s.LoggingSuite.TearDownTest(c)
33
 
}
34
 
 
35
27
var jsonImagesContent = `
36
28
{
37
29
 "content_id": "com.ubuntu.cloud:released:aws",