Mercurial > hgsubversion
comparison tests/test_fetch_command.py @ 138:40474f6c1f84
diff_cmd: more robust, add tests.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Thu, 11 Dec 2008 19:49:36 -0600 |
parents | cf6fe8457570 |
children | 19aabf67c792 |
comparison
equal
deleted
inserted
replaced
137:904a4b08f70f | 138:40474f6c1f84 |
---|---|
6 | 6 |
7 import test_util | 7 import test_util |
8 | 8 |
9 | 9 |
10 class TestBasicRepoLayout(test_util.TestBase): | 10 class TestBasicRepoLayout(test_util.TestBase): |
11 def _load_fixture_and_fetch(self, fixture_name, subdir='', stupid=False): | |
12 return test_util.load_fixture_and_fetch(fixture_name, self.repo_path, | |
13 self.wc_path, subdir=subdir, | |
14 stupid=stupid) | |
15 | |
16 def test_fresh_fetch_single_rev(self): | 11 def test_fresh_fetch_single_rev(self): |
17 repo = self._load_fixture_and_fetch('single_rev.svndump') | 12 repo = self._load_fixture_and_fetch('single_rev.svndump') |
18 self.assertEqual(node.hex(repo['tip'].node()), | 13 self.assertEqual(node.hex(repo['tip'].node()), |
19 'a47d0ce778660a91c31bf2c21c448e9ee296ac90') | 14 'a47d0ce778660a91c31bf2c21c448e9ee296ac90') |
20 self.assertEqual(repo['tip'], repo[0]) | 15 self.assertEqual(repo['tip'], repo[0]) |