~mattyw/juju-core/add-service-owner-to-status

« back to all changes in this revision

Viewing changes to agent/format-1.12_whitebox_test.go

  • Committer: mattyw
  • Date: 2014-02-27 04:52:21 UTC
  • mfrom: (2348.1.13 juju-core)
  • Revision ID: lp@mattyw.net-20140227045221-wyq7xpxvh4jmba27
merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
        jc "launchpad.net/juju-core/testing/checkers"
13
13
        "launchpad.net/juju-core/testing/testbase"
 
14
        "launchpad.net/juju-core/version"
14
15
)
15
16
 
16
17
type format_1_12Suite struct {
42
43
}
43
44
 
44
45
func (s *format_1_12Suite) assertWriteAndRead(c *gc.C, config *configInternal) {
 
46
        // Format 1.12 doesn't know about upgradedToVersion so zero it out.
 
47
        config.upgradedToVersion = version.Zero
45
48
        err := s.formatter.write(config)
46
49
        c.Assert(err, gc.IsNil)
47
50
        // The readConfig is missing the dataDir initially.