comparison tests/test_fetch_truncated.py @ 1066:825fd4c0396c

test_fetch_truncated: use stupid mode metaclass
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 09 Aug 2013 23:45:56 +0200
parents d741f536f23a
children
comparison
equal deleted inserted replaced
1065:8b6fb32b001e 1066:825fd4c0396c
4 4
5 from mercurial import commands 5 from mercurial import commands
6 from mercurial import hg 6 from mercurial import hg
7 7
8 class TestFetchTruncatedHistory(test_util.TestBase): 8 class TestFetchTruncatedHistory(test_util.TestBase):
9 def test_truncated_history(self, stupid=False): 9 stupid_mode_tests = True
10
11 def test_truncated_history(self):
10 # Test repository does not follow the usual layout 12 # Test repository does not follow the usual layout
11 repo_path = self.load_svndump('truncatedhistory.svndump') 13 repo_path = self.load_svndump('truncatedhistory.svndump')
12 svn_url = test_util.fileurl(repo_path + '/project2') 14 svn_url = test_util.fileurl(repo_path + '/project2')
13 commands.clone(self.ui(stupid), svn_url, self.wc_path, noupdate=True) 15 commands.clone(self.ui(), svn_url, self.wc_path, noupdate=True)
14 repo = hg.repository(self.ui(stupid), self.wc_path) 16 repo = hg.repository(self.ui(), self.wc_path)
15 17
16 # We are converting /project2/trunk coming from: 18 # We are converting /project2/trunk coming from:
17 # 19 #
18 # Changed paths: 20 # Changed paths:
19 # D /project1 21 # D /project1
24 tip = repo['tip'] 26 tip = repo['tip']
25 files = tip.manifest().keys() 27 files = tip.manifest().keys()
26 files.sort() 28 files.sort()
27 self.assertEqual(files, ['a', 'b']) 29 self.assertEqual(files, ['a', 'b'])
28 self.assertEqual(repo['tip']['a'].data(), 'a\n') 30 self.assertEqual(repo['tip']['a'].data(), 'a\n')
29
30 def test_truncated_history_stupid(self):
31 self.test_truncated_history(True)