~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_extract.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:
67
67
 
68
68
    def test_bad_repo_format(self):
69
69
        repo = self.make_repository('branch', shared=True, 
70
 
                                    format=bzrdir.get_knit1_format())
 
70
                                    format='knit')
71
71
        a_branch = repo.bzrdir.create_branch()
72
72
        self.assertRaises(errors.RootNotRich, self.extract_in_checkout, 
73
73
                          a_branch)
74
74
 
75
75
    def test_good_repo_format(self):
76
76
        repo = self.make_repository('branch', shared=True, 
77
 
                                    format=bzrdir.get_knit2_format())
 
77
                                    format='experimental-knit2')
78
78
        a_branch = repo.bzrdir.create_branch()
79
79
        wt_b = self.extract_in_checkout(a_branch)
80
80
        self.assertEqual(wt_b.branch.repository.bzrdir.transport.base,