~jameinel/juju-core/api-registry-tracks-type

« back to all changes in this revision

Viewing changes to state/settings_test.go

  • Committer: Dimiter Naydenov
  • Date: 2013-09-13 14:48:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1817.
  • Revision ID: dimiter.naydenov@canonical.com-20130913144813-z6i2mdb783ef4kad
Fixed gocheck, checkers, imports

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
        "time"
8
8
 
9
9
        "labix.org/v2/mgo/txn"
10
 
 
11
10
        gc "launchpad.net/gocheck"
12
11
 
13
12
        "launchpad.net/juju-core/errors"
14
13
        "launchpad.net/juju-core/testing"
15
 
        "launchpad.net/juju-core/testing/checkers"
 
14
        jc "launchpad.net/juju-core/testing/checkers"
16
15
)
17
16
 
18
17
type SettingsSuite struct {
84
83
func (s *SettingsSuite) TestCannotReadMissing(c *gc.C) {
85
84
        _, err := readSettings(s.state, s.key)
86
85
        c.Assert(err, gc.ErrorMatches, "settings not found")
87
 
        c.Assert(err, checkers.Satisfies, errors.IsNotFoundError)
 
86
        c.Assert(err, jc.Satisfies, errors.IsNotFoundError)
88
87
}
89
88
 
90
89
func (s *SettingsSuite) TestCannotWriteMissing(c *gc.C) {
97
96
        node.Set("foo", "bar")
98
97
        _, err = node.Write()
99
98
        c.Assert(err, gc.ErrorMatches, "settings not found")
100
 
        c.Assert(err, checkers.Satisfies, errors.IsNotFoundError)
 
99
        c.Assert(err, jc.Satisfies, errors.IsNotFoundError)
101
100
}
102
101
 
103
102
func (s *SettingsSuite) TestUpdateWithWrite(c *gc.C) {