Mercurial > hgsubversion
diff 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 |
line wrap: on
line diff
--- a/tests/test_fetch_renames.py +++ b/tests/test_fetch_renames.py @@ -61,6 +61,21 @@ class TestFetchRenames(test_util.TestBas def test_rename_stupid(self): self._test_rename(True) + def _test_case(self, stupid): + repo = self._load_fixture_and_fetch('filecase.svndump', stupid) + files = { + 0: ['A', 'a', 'e/a', 'b', 'd/a', 'D/a', 'f/a', 'F'], + 1: ['A', 'a', 'E/a', 'B', 'd/A', 'D/a', 'f/a', 'F'], + } + for rev in repo: + self.assertEqual(sorted(files[rev]), sorted(repo[rev].manifest())) + + def test_case(self): + self._test_case(False) + + def test_case_stupid(self): + self._test_case(True) + def suite(): all = [unittest.TestLoader().loadTestsFromTestCase(TestFetchRenames), ]