432
432
self.make_branch_and_tree('topdir')
433
433
tree, branch, relpath = bzrdir.BzrDir.open_containing_tree_or_branch(
436
436
os.path.realpath(tree.basedir))
438
438
local_branch_path(branch))
439
439
self.assertIs(tree.bzrdir, branch.bzrdir)
440
440
self.assertEqual('foo', relpath)