66
66
self.assertEqual(sub_root_id, base_tree.path2id('subtree'))
67
67
self.assertEqual('file2-id', base_tree.path2id('subtree/file2'))
68
68
sub_bzrdir = bzrdir.BzrDir.open('tree/subtree')
69
72
self.assertRaises(errors.NoWorkingTree, sub_bzrdir.open_workingtree)
71
75
file2 = open('tree/subtree/file2', 'rb')
73
77
file2_contents = file2.read()