comparison tests/test_fetch_renames.py @ 132:3a9d6cd18332

test_fetch_renames: test file and directory case changes
author Patrick Mezard <pmezard@gmail.com>
date Wed, 10 Dec 2008 11:03:23 -0600
parents c2a84d436202
children 5e0dfe59d4c3
comparison
equal deleted inserted replaced
131:4d42dbbb5127 132:3a9d6cd18332
59 self._test_rename(False) 59 self._test_rename(False)
60 60
61 def test_rename_stupid(self): 61 def test_rename_stupid(self):
62 self._test_rename(True) 62 self._test_rename(True)
63 63
64 def _test_case(self, stupid):
65 repo = self._load_fixture_and_fetch('filecase.svndump', stupid)
66 files = {
67 0: ['A', 'a', 'e/a', 'b', 'd/a', 'D/a', 'f/a', 'F'],
68 1: ['A', 'a', 'E/a', 'B', 'd/A', 'D/a', 'f/a', 'F'],
69 }
70 for rev in repo:
71 self.assertEqual(sorted(files[rev]), sorted(repo[rev].manifest()))
72
73 def test_case(self):
74 self._test_case(False)
75
76 def test_case_stupid(self):
77 self._test_case(True)
78
64 def suite(): 79 def suite():
65 all = [unittest.TestLoader().loadTestsFromTestCase(TestFetchRenames), 80 all = [unittest.TestLoader().loadTestsFromTestCase(TestFetchRenames),
66 ] 81 ]
67 return unittest.TestSuite(all) 82 return unittest.TestSuite(all)