~rogpeppe/juju-core/azure

« back to all changes in this revision

Viewing changes to state/apiserver/client_test.go

  • Committer: Roger Peppe
  • Date: 2013-06-25 09:50:52 UTC
  • mto: This revision was merged to the branch mainline in revision 1352.
  • Revision ID: roger.peppe@canonical.com-20130625095052-o5tm56alo6xl7707
many: use checkers.Satisfies

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
        "launchpad.net/juju-core/state/api/params"
15
15
        "launchpad.net/juju-core/state/apiserver"
16
16
        coretesting "launchpad.net/juju-core/testing"
 
17
        "launchpad.net/juju-core/testing/checkers"
17
18
)
18
19
 
19
20
type clientSuite struct {
318
319
                )
319
320
                c.Check(err, ErrorMatches, expect)
320
321
                _, err = s.State.Service("service")
321
 
                c.Assert(errors.IsNotFoundError(err), Equals, true)
 
322
                c.Assert(err, checkers.Satisfies, errors.IsNotFoundError)
322
323
        }
323
324
}
324
325
 
407
408
        )
408
409
        c.Assert(err, ErrorMatches, `option "skill-level" expected int, got "fred"`)
409
410
        _, err = s.State.Service("service-name")
410
 
        c.Assert(errors.IsNotFoundError(err), Equals, true)
 
411
        c.Assert(err, checkers.Satisfies, errors.IsNotFoundError)
411
412
}
412
413
 
413
414
func (s *clientSuite) TestClientServiceSetCharm(c *C) {