~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

Fix the format 4 tree layout test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
    """Tests specific to WorkingTreeFormat4."""
231
231
 
232
232
    def test_disk_layout(self):
233
 
        control = bzrdir.BzrDir.create(self.get_url())
 
233
        control = bzrdir.BzrDirMetaFormat1().initialize(self.get_url())
234
234
        control.create_repository()
235
235
        control.create_branch()
236
236
        tree = workingtree.WorkingTreeFormat4().initialize(control)
241
241
        # stat-cache = ??
242
242
        # no inventory.basis yet
243
243
        t = control.get_workingtree_transport(None)
244
 
        self.assertEqualDiff('Bazaar Working Tree format 4',
 
244
        self.assertEqualDiff('Bazaar Working Tree format 4\n',
245
245
                             t.get('format').read())
246
 
        self.assertEqualDiff('<inventory format="5">\n'
247
 
                             '</inventory>\n',
248
 
                             t.get('inventory').read())
249
246
        self.assertEqualDiff('### bzr hashcache v5\n',
250
247
                             t.get('stat-cache').read())
251
248
        self.assertFalse(t.has('inventory.basis'))