586
586
if []!= progress.updates:
587
587
self.assertEqual(expected, progress.updates)
589
lines = iter_with_versions(['child', 'otherchild'],
590
[('Walking content.', 0, 2),
591
('Walking content.', 0, 2),
592
('Walking content.', 3, 2),
589
lines = iter_with_versions(['child', 'otherchild'],
590
[('Walking content.', 0, 2),
591
('Walking content.', 1, 2),
593
592
('Walking content.', 2, 2)])
594
593
# we must see child and otherchild
595
594
self.assertTrue(lines['child\n'] > 0)
597
596
# we dont care if we got more than that.
600
lines = iter_with_versions(None, [('Walking content.', 0, 5),
601
('Walking content.', 0, 5),
602
('Walking content.', 1, 5),
603
('Walking content.', 2, 5),
604
('Walking content.', 2, 5),
605
('Walking content.', 3, 5),
599
lines = iter_with_versions(None, [('Walking content.', 0, 5),
600
('Walking content.', 1, 5),
601
('Walking content.', 2, 5),
602
('Walking content.', 3, 5),
603
('Walking content.', 4, 5),
606
604
('Walking content.', 5, 5)])
607
605
# all lines must be seen at least once
608
606
self.assertTrue(lines['base\n'] > 0)
664
662
self.assertRaises(NotImplementedError, vf.get_parents_with_ghosts, 'foo')
665
663
self.assertRaises(NotImplementedError, vf.get_graph_with_ghosts)
665
vf = self.reopen_file()
667
666
# test key graph related apis: getncestry, _graph, get_parents
669
668
# - these are ghost unaware and must not be reflect ghosts