comparison tests/test_fetch_command.py @ 125:c35f59aa200e

Move and complete execute bit conversion tests into test_fetch_exec.py
author Patrick Mezard <pmezard@gmail.com>
date Wed, 10 Dec 2008 11:03:18 -0600
parents e58c2f1de059
children e33c7a4bcebb
comparison
equal deleted inserted replaced
124:291925677a9f 125:c35f59aa200e
113 self.assertEqual(repo['tip'].parents()[0].parents()[0], 113 self.assertEqual(repo['tip'].parents()[0].parents()[0],
114 repo['oldest']) 114 repo['oldest'])
115 self.assertEqual(node.hex(repo['tip'].node()), 115 self.assertEqual(node.hex(repo['tip'].node()),
116 '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c') 116 '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c')
117 117
118 def test_empty_prop_val_executable(self):
119 repo = self._load_fixture_and_fetch('executable_file_empty_prop.svndump')
120 self.assertEqual(node.hex(repo['tip'].node()),
121 'b19e2bdd93da30b09c2396cfdb987cc85271249a')
122 self.assertEqual(repo['tip']['foo'].flags(), 'x')
123
124 118
125 class TestStupidPull(test_util.TestBase): 119 class TestStupidPull(test_util.TestBase):
126 def test_stupid(self): 120 def test_stupid(self):
127 repo = test_util.load_fixture_and_fetch('two_heads.svndump', 121 repo = test_util.load_fixture_and_fetch('two_heads.svndump',
128 self.repo_path, 122 self.repo_path,
152 'd73002bcdeffe389a8df81ee43303d36e79e8ca4') 146 'd73002bcdeffe389a8df81ee43303d36e79e8ca4')
153 self.assertEqual(repo['tip'].parents()[0].parents()[0], 147 self.assertEqual(repo['tip'].parents()[0].parents()[0],
154 repo['oldest']) 148 repo['oldest'])
155 self.assertEqual(node.hex(repo['tip'].node()), 149 self.assertEqual(node.hex(repo['tip'].node()),
156 '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c') 150 '9cf09e6ff7fa938188c3bcc9dd87abd7842c080c')
157
158 def test_empty_prop_val_executable(self):
159 repo = test_util.load_fixture_and_fetch(
160 'executable_file_empty_prop.svndump',
161 self.repo_path,
162 self.wc_path,
163 True)
164 self.assertEqual(repo['tip']['foo'].flags(), 'x')
165 self.assertEqual(node.hex(repo['tip'].node()),
166 'b19e2bdd93da30b09c2396cfdb987cc85271249a')
167
168 151
169 def suite(): 152 def suite():
170 all = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout), 153 all = [unittest.TestLoader().loadTestsFromTestCase(TestBasicRepoLayout),
171 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull), 154 unittest.TestLoader().loadTestsFromTestCase(TestStupidPull),
172 ] 155 ]