comparison 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
comparison
equal deleted inserted replaced
143:edd9f4e5154a 144:19aabf67c792
119 self.assertEqual(repo['tip'].branch(), 'dev_branch') 119 self.assertEqual(repo['tip'].branch(), 'dev_branch')
120 120
121 def test_propedit_with_nothing_else_stupid(self): 121 def test_propedit_with_nothing_else_stupid(self):
122 self.test_propedit_with_nothing_else(stupid=True) 122 self.test_propedit_with_nothing_else(stupid=True)
123 123
124 def test_entry_deletion(self, stupid=False):
125 repo = self._load_fixture_and_fetch('delentries.svndump',
126 stupid=stupid)
127 files = list(sorted(repo['tip'].manifest()))
128 self.assertEqual(['aa', 'd1/c', 'd1/d2prefix'], files)
129
130 def test_entry_deletion_stupid(self):
131 self.test_entry_deletion(stupid=True)
132
124 133
125 class TestStupidPull(test_util.TestBase): 134 class TestStupidPull(test_util.TestBase):
126 def test_stupid(self): 135 def test_stupid(self):
127 repo = test_util.load_fixture_and_fetch('two_heads.svndump', 136 repo = test_util.load_fixture_and_fetch('two_heads.svndump',
128 self.repo_path, 137 self.repo_path,