~gz/juju-core/trunk

« back to all changes in this revision

Viewing changes to cloudinit/cloudinit_test.go

[r=rogpeppe] all: standardise gocheck imports, A-D

This is an automated change to use "gc" for gocheck
imports throughout. To avoid clogging Rietveld, I've
split it up into three parts - this is the first.

https://codereview.appspot.com/12940044/

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
        "fmt"
8
8
        "testing"
9
9
 
10
 
        . "launchpad.net/gocheck"
 
10
        gc "launchpad.net/gocheck"
11
11
 
12
12
        "launchpad.net/juju-core/cloudinit"
13
13
)
16
16
 
17
17
type S struct{}
18
18
 
19
 
var _ = Suite(S{})
 
19
var _ = gc.Suite(S{})
20
20
 
21
21
func Test1(t *testing.T) {
22
 
        TestingT(t)
 
22
        gc.TestingT(t)
23
23
}
24
24
 
25
25
var ctests = []struct {
246
246
`
247
247
)
248
248
 
249
 
func (S) TestOutput(c *C) {
 
249
func (S) TestOutput(c *gc.C) {
250
250
        for _, t := range ctests {
251
251
                cfg := cloudinit.New()
252
252
                t.setOption(cfg)
253
253
                data, err := cfg.Render()
254
 
                c.Assert(err, IsNil)
255
 
                c.Assert(data, NotNil)
256
 
                c.Assert(string(data), Equals, header+t.expect, Commentf("test %q output differs", t.name))
 
254
                c.Assert(err, gc.IsNil)
 
255
                c.Assert(data, gc.NotNil)
 
256
                c.Assert(string(data), gc.Equals, header+t.expect, gc.Commentf("test %q output differs", t.name))
257
257
        }
258
258
}
259
259