9
func Test(t *testing.T) { gc.TestingT(t) }
11
type ErrorsSuite struct {
14
var _ = gc.Suite(&ErrorsSuite{})
16
func (s *ErrorsSuite) TestServerErrorMessage(c *gc.C) {
18
message: "Instance could not be found",
21
c.Assert(err, gc.ErrorMatches, "itemNotFound: Instance could not be found")
24
func (s *ErrorsSuite) TestServerUnknownErrcode(c *gc.C) {
26
message: "Impossible http code.",
29
c.Assert(err, gc.ErrorMatches, "computeFault: Impossible http code.")