~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree.py

  • Committer: Aaron Bentley
  • Date: 2007-01-11 03:46:53 UTC
  • mto: (2255.6.1 dirstate)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: aaron.bentley@utoronto.ca-20070111034653-wa1n3uy49wbvom5m
Remove get_format_*, make FormatRegistry.register_metadir vary working tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
    """Tests specific to WorkingTreeFormat3."""
225
225
 
226
226
    def test_disk_layout(self):
227
 
        tree = self.make_branch_and_tree('.', format=bzrdir.get_knit3_format())
 
227
        tree = self.make_branch_and_tree('.', format='experimental-knit3')
228
228
        control = tree.bzrdir
229
229
        # we want:
230
230
        # format 'Bazaar-NG Working Tree format 4'
254
254
            '</inventory>\n')
255
255
    
256
256
    def test_incompatible_repo(self):
257
 
        control = bzrdir.get_knit1_format()
 
257
        control = bzrdir.format_registry.make_bzrdir('knit')
258
258
        control.workingtree_format = workingtree.WorkingTreeFormat4()
259
259
        tree = self.make_branch_and_tree('.', format=control)
260
260
        self.assertRaises(errors.RootNotRich, tree.commit)
261
261
 
262
262
    def test_compatible_repo(self):
263
 
        tree = self.make_branch_and_tree('.', format=bzrdir.get_knit3_format())
 
263
        tree = self.make_branch_and_tree('.', format='experimental-knit3')
264
264
        tree.set_root_id('my-root-id')
265
265
        tree.commit('test', rev_id='revision-1')
266
266
        tree.commit('test', rev_id='revision-2')