/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_extract.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2017-06-10 18:39:27 UTC
  • mfrom: (6653.6.7 rename-controldir)
  • Revision ID: breezy.the.bot@gmail.com-20170610183927-8yn4wmsk1ki92xc3
Rename ``bzrdir`` attribute to ``controldir``.

Merged from https://code.launchpad.net/~jelmer/brz/rename-controldir/+merge/325433

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
    def test_bad_repo_format(self):
68
68
        repo = self.make_repository('branch', shared=True,
69
69
                                    format='knit')
70
 
        a_branch = repo.bzrdir.create_branch()
 
70
        a_branch = repo.controldir.create_branch()
71
71
        self.assertRaises(errors.RootNotRich, self.extract_in_checkout,
72
72
                          a_branch)
73
73
 
74
74
    def test_good_repo_format(self):
75
75
        repo = self.make_repository('branch', shared=True,
76
76
            format='dirstate-with-subtree')
77
 
        a_branch = repo.bzrdir.create_branch()
 
77
        a_branch = repo.controldir.create_branch()
78
78
        wt_b = self.extract_in_checkout(a_branch)
79
 
        self.assertEqual(wt_b.branch.repository.bzrdir.transport.base,
80
 
        repo.bzrdir.transport.base)
 
79
        self.assertEqual(wt_b.branch.repository.controldir.transport.base,
 
80
        repo.controldir.transport.base)