comparison tests/comprehensive/test_verify.py @ 427:868693631372

verify: take a kwarg for node to check. Fixes verify tests on case-insensitive filesystems.
author Augie Fackler <durin42@gmail.com>
date Mon, 15 Jun 2009 12:26:21 -0500
parents 72e63999722f
children de085126dbd4
comparison
equal deleted inserted replaced
426:72e63999722f 427:868693631372
18 subdir = test_util.subdir.get(name, '') 18 subdir = test_util.subdir.get(name, '')
19 repo = self._load_fixture_and_fetch(name, subdir=subdir, stupid=stupid) 19 repo = self._load_fixture_and_fetch(name, subdir=subdir, stupid=stupid)
20 assert len(self.repo) > 0 20 assert len(self.repo) > 0
21 for i in repo: 21 for i in repo:
22 ctx = repo[i] 22 ctx = repo[i]
23 hg.clean(repo, ctx.node(), False) 23 self.assertEqual(svncommands.verify(repo.ui, repo, verifynode=ctx.node()), 0)
24 self.assertEqual(svncommands.verify(repo.ui, repo), 0)
25 24
26 def buildmethod(case, name, stupid): 25 def buildmethod(case, name, stupid):
27 m = lambda self: self._do_case(case, stupid) 26 m = lambda self: self._do_case(case, stupid)
28 m.__name__ = name 27 m.__name__ = name
29 bits = case, stupid and 'stupid' or 'real' 28 bits = case, stupid and 'stupid' or 'real'