29
29
def test_straightline_ancestry(self):
30
30
"""Test ancestry file when just committing."""
31
31
b = Branch.initialize('.')
41
42
ancs = b.get_ancestry('tester@foo--2')
43
self.assertEqual([None, 'tester@foo--1', 'tester@foo--2'], ancs)
43
47
def test_none_is_always_an_ancestor(self):
44
48
b = Branch.initialize('.')
45
49
# note this is tested before any commits are done.
46
50
self.assertEqual(True, is_ancestor(None, None, b))
50
55
self.assertEqual(True, is_ancestor(None, None, b))
51
56
self.assertEqual(True, is_ancestor('tester@foo--1', None, b))
52
57
self.assertEqual(False, is_ancestor(None, 'tester@foo--1', b))