302
302
def test_shelve_old_root_preserved(self):
303
303
tree1 = self.make_branch_and_tree('tree1')
306
306
tree2 = self.make_branch_and_tree('tree2')
307
307
rev2 = tree2.commit('add root')
309
309
tree1.merge_from_branch(tree2.branch,
310
310
from_revision=revision.NULL_REVISION)
311
311
tree1.commit('merging in tree2')
313
313
# This is essentially assertNotRaises(InconsistentDelta)
314
314
# With testtools 0.9.9, it can be rewritten as:
315
315
# with ExpectedException(AssertionError,