diff tests/test_fetch_command.py @ 144:19aabf67c792

test_fetch_command: test file and directory deletions
author Patrick Mezard <pmezard@gmail.com>
date Mon, 15 Dec 2008 21:39:35 -0600
parents 40474f6c1f84
children 6fa97cfbf62f
line wrap: on
line diff
--- a/tests/test_fetch_command.py
+++ b/tests/test_fetch_command.py
@@ -121,6 +121,15 @@ class TestBasicRepoLayout(test_util.Test
     def test_propedit_with_nothing_else_stupid(self):
         self.test_propedit_with_nothing_else(stupid=True)
 
+    def test_entry_deletion(self, stupid=False):
+        repo = self._load_fixture_and_fetch('delentries.svndump',
+                                            stupid=stupid)
+        files = list(sorted(repo['tip'].manifest()))
+        self.assertEqual(['aa', 'd1/c', 'd1/d2prefix'], files)
+
+    def test_entry_deletion_stupid(self):
+        self.test_entry_deletion(stupid=True)
+
 
 class TestStupidPull(test_util.TestBase):
     def test_stupid(self):