Mercurial > hgsubversion
comparison tests/test_fetch_command.py @ 135:e33c7a4bcebb
tests: Fix a missing pass of stupid=True.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Thu, 11 Dec 2008 17:19:43 -0600 |
parents | c35f59aa200e |
children | cf6fe8457570 |
comparison
equal
deleted
inserted
replaced
134:22248b34b15a | 135:e33c7a4bcebb |
---|---|
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=''): | 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, | 12 return test_util.load_fixture_and_fetch(fixture_name, self.repo_path, |
13 self.wc_path, subdir=subdir) | 13 self.wc_path, subdir=subdir, |
14 stupid=stupid) | |
14 | 15 |
15 def test_fresh_fetch_single_rev(self): | 16 def test_fresh_fetch_single_rev(self): |
16 repo = self._load_fixture_and_fetch('single_rev.svndump') | 17 repo = self._load_fixture_and_fetch('single_rev.svndump') |
17 self.assertEqual(node.hex(repo['tip'].node()), | 18 self.assertEqual(node.hex(repo['tip'].node()), |
18 'a47d0ce778660a91c31bf2c21c448e9ee296ac90') | 19 'a47d0ce778660a91c31bf2c21c448e9ee296ac90') |
58 # TODO there must be a better way than repo[0] for this check | 59 # TODO there must be a better way than repo[0] for this check |
59 self._many_special_cases_checks(repo) | 60 self._many_special_cases_checks(repo) |
60 | 61 |
61 | 62 |
62 def test_many_special_cases_diff(self): | 63 def test_many_special_cases_diff(self): |
63 repo = self._load_fixture_and_fetch('many_special_cases.svndump') | 64 repo = self._load_fixture_and_fetch('many_special_cases.svndump', |
65 stupid=True) | |
64 # TODO there must be a better way than repo[0] for this check | 66 # TODO there must be a better way than repo[0] for this check |
65 self._many_special_cases_checks(repo) | 67 self._many_special_cases_checks(repo) |
66 | 68 |
67 def _many_special_cases_checks(self, repo): | 69 def _many_special_cases_checks(self, repo): |
68 self.assertEqual(node.hex(repo[0].node()), | 70 self.assertEqual(node.hex(repo[0].node()), |