~ubuntu-branches/ubuntu/trusty/juju-core/trusty-proposed

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/schema/schema_test.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-01-29 11:40:20 UTC
  • mfrom: (23.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20140129114020-ejieitm8smtt5vln
Tags: 1.17.1-0ubuntu2
d/tests/local-provider: Don't fail tests if ~/.juju is present as its
created by the juju version command. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
377
377
 
378
378
        out, err := sch.Coerce(map[string]interface{}{"a": "A", "b": "B", "d": "D"}, aPath)
379
379
        c.Assert(out, gc.IsNil)
380
 
        c.Assert(err, gc.ErrorMatches, `<path>.d: expected nothing, got string\("D"\)`)
 
380
        c.Assert(err, gc.ErrorMatches, `<path>: unknown key "d" \(value "D"\)`)
381
381
}
382
382
 
383
383
func (s *S) TestSchemaMap(c *gc.C) {