Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(215)

Side by Side Diff: cmd/juju/destroyservice_test.go

Issue 13606045: various: gocheck, checkers, imports fixes (Closed)
Patch Set: Created 11 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 Canonical Ltd. 1 // Copyright 2013 Canonical Ltd.
2 // Licensed under the AGPLv3, see LICENCE file for details. 2 // Licensed under the AGPLv3, see LICENCE file for details.
3 3
4 package main 4 package main
5 5
6 import ( 6 import (
7 gc "launchpad.net/gocheck" 7 gc "launchpad.net/gocheck"
8
8 jujutesting "launchpad.net/juju-core/juju/testing" 9 jujutesting "launchpad.net/juju-core/juju/testing"
9 "launchpad.net/juju-core/state" 10 "launchpad.net/juju-core/state"
10 "launchpad.net/juju-core/testing" 11 "launchpad.net/juju-core/testing"
11 ) 12 )
12 13
13 type DestroyServiceSuite struct { 14 type DestroyServiceSuite struct {
14 jujutesting.RepoSuite 15 jujutesting.RepoSuite
15 } 16 }
16 17
17 var _ = gc.Suite(&DestroyServiceSuite{}) 18 var _ = gc.Suite(&DestroyServiceSuite{})
(...skipping 22 matching lines...) Expand all
40 } 41 }
41 42
42 func (s *DestroyServiceSuite) TestInvalidArgs(c *gc.C) { 43 func (s *DestroyServiceSuite) TestInvalidArgs(c *gc.C) {
43 err := runDestroyService(c) 44 err := runDestroyService(c)
44 c.Assert(err, gc.ErrorMatches, `no service specified`) 45 c.Assert(err, gc.ErrorMatches, `no service specified`)
45 err = runDestroyService(c, "ping", "pong") 46 err = runDestroyService(c, "ping", "pong")
46 c.Assert(err, gc.ErrorMatches, `unrecognized args: \["pong"\]`) 47 c.Assert(err, gc.ErrorMatches, `unrecognized args: \["pong"\]`)
47 err = runDestroyService(c, "invalid:name") 48 err = runDestroyService(c, "invalid:name")
48 c.Assert(err, gc.ErrorMatches, `invalid service name "invalid:name"`) 49 c.Assert(err, gc.ErrorMatches, `invalid service name "invalid:name"`)
49 } 50 }
OLDNEW
« no previous file with comments | « cmd/juju/destroyrelation_test.go ('k') | cmd/juju/destroyunit_test.go » ('j') | names/environ.go » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b