~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_versionedfile.py

  • Committer: John Arbash Meinel
  • Date: 2006-12-11 19:25:13 UTC
  • mfrom: (2172 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2173.
  • Revision ID: john@arbash-meinel.com-20061211192513-u9ivkqwkp8j3v2i5
[merge] bzr.dev 2172 and move NEWS to the correct location

Show diffs side-by-side

added added

removed removed

Lines of Context:
586
586
            if []!= progress.updates: 
587
587
                self.assertEqual(expected, progress.updates)
588
588
            return lines
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.
598
597
        
599
598
        # test all lines
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)
666
664
            return
 
665
        vf = self.reopen_file()
667
666
        # test key graph related apis: getncestry, _graph, get_parents
668
667
        # has_version
669
668
        # - these are ghost unaware and must not be reflect ghosts