~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.py

Merge with __contains__

Show diffs side-by-side

added added

removed removed

Lines of Context:
646
646
        a_dir.open_branch()
647
647
        self.assertRaises(errors.NoWorkingTree, a_dir.open_workingtree)
648
648
 
 
649
    def test_clone_respects_stacked(self):
 
650
        branch = self.make_branch('parent')
 
651
        child_transport = branch.bzrdir.root_transport.clone('../child')
 
652
        child = branch.bzrdir.clone_on_transport(child_transport,
 
653
                                                 stacked_on=branch.base)
 
654
        self.assertEqual(child.open_branch().get_stacked_on_url(), branch.base)
 
655
 
649
656
    def test_get_branch_reference_on_reference(self):
650
657
        """get_branch_reference should return the right url."""
651
658
        referenced_branch = self.make_branch('referenced')