48
48
def test_none_is_always_an_ancestor(self):
49
49
tree = self.make_branch_and_memory_tree('.')
50
52
# note this is tested before any commits are done.
51
53
self.assertTrue(is_ancestor(None, None, tree.branch))
52
54
rev_id = tree.commit('one')
53
56
self.assertTrue(is_ancestor(None, None, tree.branch))
54
57
self.assertTrue(is_ancestor(rev_id, None, tree.branch))
55
58
self.assertFalse(is_ancestor(None, rev_id, tree.branch))