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