Mercurial > hgsubversion
comparison tests/test_utility_commands.py @ 851:9ce00cb1d676
Merge alternate tunnel schemes.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Sat, 25 Feb 2012 14:51:22 -0600 |
parents | 312b37bc5e20 |
children | 04729f3a3d17 |
comparison
equal
deleted
inserted
replaced
850:d3bc067c0f72 | 851:9ce00cb1d676 |
---|---|
110 | 110 |
111 def test_parent_output(self): | 111 def test_parent_output(self): |
112 self._load_fixture_and_fetch('two_heads.svndump') | 112 self._load_fixture_and_fetch('two_heads.svndump') |
113 u = self.ui() | 113 u = self.ui() |
114 u.pushbuffer() | 114 u.pushbuffer() |
115 parents = (self.repo['the_branch'].node(), revlog.nullid, ) | 115 parents = (self.repo['the_branch'].node(), revlog.nullid,) |
116 def filectxfn(repo, memctx, path): | 116 def filectxfn(repo, memctx, path): |
117 return context.memfilectx(path=path, | 117 return context.memfilectx(path=path, |
118 data='added', | 118 data='added', |
119 islink=False, | 119 islink=False, |
120 isexec=False, | 120 isexec=False, |
153 self.assertEqual(actual, '4:1083037b18d8\n') | 153 self.assertEqual(actual, '4:1083037b18d8\n') |
154 | 154 |
155 def test_outgoing_output(self): | 155 def test_outgoing_output(self): |
156 self._load_fixture_and_fetch('two_heads.svndump') | 156 self._load_fixture_and_fetch('two_heads.svndump') |
157 u = self.ui() | 157 u = self.ui() |
158 parents = (self.repo['the_branch'].node(), revlog.nullid, ) | 158 parents = (self.repo['the_branch'].node(), revlog.nullid,) |
159 def filectxfn(repo, memctx, path): | 159 def filectxfn(repo, memctx, path): |
160 return context.memfilectx(path=path, | 160 return context.memfilectx(path=path, |
161 data='added', | 161 data='added', |
162 islink=False, | 162 islink=False, |
163 isexec=False, | 163 isexec=False, |
183 actual = u.popbuffer() | 183 actual = u.popbuffer() |
184 self.assertEqual(actual, '') | 184 self.assertEqual(actual, '') |
185 | 185 |
186 def test_rebase(self): | 186 def test_rebase(self): |
187 self._load_fixture_and_fetch('two_revs.svndump') | 187 self._load_fixture_and_fetch('two_revs.svndump') |
188 parents = (self.repo[0].node(), revlog.nullid, ) | 188 parents = (self.repo[0].node(), revlog.nullid,) |
189 def filectxfn(repo, memctx, path): | 189 def filectxfn(repo, memctx, path): |
190 return context.memfilectx(path=path, | 190 return context.memfilectx(path=path, |
191 data='added', | 191 data='added', |
192 islink=False, | 192 islink=False, |
193 isexec=False, | 193 isexec=False, |
249 authors=author_path) | 249 authors=author_path) |
250 self.assertMultiLineEqual(open(author_path).read(), 'Augie=\nevil=\n') | 250 self.assertMultiLineEqual(open(author_path).read(), 'Augie=\nevil=\n') |
251 | 251 |
252 | 252 |
253 def suite(): | 253 def suite(): |
254 all = [unittest.TestLoader().loadTestsFromTestCase(UtilityTests), | 254 all_tests = [unittest.TestLoader().loadTestsFromTestCase(UtilityTests), |
255 ] | 255 ] |
256 return unittest.TestSuite(all) | 256 return unittest.TestSuite(all_tests) |