Index: cmd/util_test.go |
=== modified file 'cmd/util_test.go' |
--- cmd/util_test.go 2013-02-22 02:47:50 +0000 |
+++ cmd/util_test.go 2013-02-28 08:11:29 +0000 |
@@ -6,9 +6,14 @@ |
"fmt" |
"io" |
"launchpad.net/gnuflag" |
+ . "launchpad.net/gocheck" |
"launchpad.net/juju-core/cmd" |
) |
+func dummyContext(c *C) *cmd.Context { |
+ return &cmd.Context{c.MkDir(), &bytes.Buffer{}, &bytes.Buffer{}, &bytes.Buffer{}} |
+} |
+ |
func bufferString(stream io.Writer) string { |
return stream.(*bytes.Buffer).String() |
} |