/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to read_changeset.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-07-01 00:50:12 UTC
  • mto: (0.5.85) (1185.82.1 bzr-w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: aaron.bentley@utoronto.ca-20050701005012-0cfc9091e48d6faa
fixed method names

Show diffs side-by-side

added added

removed removed

Lines of Context:
585
585
            mtree.add_dir("d", "grandparent/alt_parent")
586
586
            return ChangesetTree(mtree), mtree
587
587
            
588
 
        def testRenames(self):
 
588
        def test_renames(self):
589
589
            """Ensure that file renames have the proper effect on children"""
590
590
            ctree = self.make_tree_1()[0]
591
591
            assert ctree.old_path("grandparent") == "grandparent"
646
646
 
647
647
            assert ctree.path2id("grandparent2/parent2/file") is None
648
648
 
649
 
        def testMoves(self):
 
649
        def test_moves(self):
650
650
            """Ensure that file moves have the proper effect on children"""
651
651
            ctree = self.make_tree_1()[0]
652
652
            ctree.note_rename("grandparent/parent/file", 
661
661
            out.seek(0,0)
662
662
            return out.read()
663
663
 
664
 
        def testAdds(self):
 
664
        def test_adds(self):
665
665
            """Ensure that inventory adds work"""
666
666
            ctree = self.make_tree_1()[0]
667
667
            ctree.note_rename("grandparent/parent/file", 
675
675
            assert ctree.id2path("e") == "grandparent/parent/file"
676
676
            assert ctree.path2id("grandparent/parent/file") == "e"
677
677
            assert ctree.get_file("e").read() == "Extra cheese"
678
 
        
679
 
    patchesTestSuite = unittest.makeSuite(CTreeTester,'test')
 
678
 
 
679
    patchesTestSuite = unittest.makeSuite(CTreeTester,'test_')
680
680
    runner = unittest.TextTestRunner()
681
681
    runner.run(patchesTestSuite)
682
682