~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_subsume.py

Merge Martin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
        # subsuming the tree removes the control directory, so you can't open
 
70
        # the workingtree or branch
 
71
        import pdb;pdb.set_trace()
69
72
        self.assertRaises(errors.NoWorkingTree, sub_bzrdir.open_workingtree)
70
 
        sub_bzrdir.open_branch()
 
73
        self.assertRaises(errors.NotBranchError, sub_bzrdir.open_branch)
 
74
        self.failIfExists('tree/subtree/.bzr')
71
75
        file2 = open('tree/subtree/file2', 'rb')
72
76
        try:
73
77
            file2_contents = file2.read()