~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bzrdir.py

  • Committer: Aaron Bentley
  • Date: 2008-08-27 20:41:03 UTC
  • mto: (3650.5.4 push)
  • mto: This revision was merged to the branch mainline in revision 3661.
  • Revision ID: aaron@aaronbentley.com-20080827204103-kjuwhyg2h74ktj79
Fix parent location when copying content

Show diffs side-by-side

added added

removed removed

Lines of Context:
1208
1208
 
1209
1209
        # The bzrdir called the branch's sprout method.
1210
1210
        self.assertSubset(['sprout'], source_bzrdir.test_branch.calls)
 
1211
 
 
1212
    def test_sprout_parent(self):
 
1213
        grandparent_tree = self.make_branch('grandparent')
 
1214
        parent = grandparent_tree.bzrdir.sprout('parent').open_branch()
 
1215
        branch_tree = parent.bzrdir.sprout('branch').open_branch()
 
1216
        self.assertContainsRe(branch_tree.get_parent(), '/parent/$')