diff tests/comprehensive/test_verify_and_startrev.py @ 897:6bc8046e3d0a

move verify to a file of its own
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sun, 13 May 2012 15:36:45 +0200
parents 9562f606c4aa
children 7f90bb48c9de
line wrap: on
line diff
--- a/tests/comprehensive/test_verify_and_startrev.py
+++ b/tests/comprehensive/test_verify_and_startrev.py
@@ -14,7 +14,7 @@ except ImportError:
 from mercurial import hg
 from mercurial import ui
 
-from hgsubversion import svncommands
+from hgsubversion import verify
 
 # these fixtures contain no files at HEAD and would result in empty clones
 _skipshallow = set([
@@ -42,7 +42,7 @@ def _do_case(self, name, stupid, layout)
     assert len(self.repo) > 0
     for i in repo:
         ctx = repo[i]
-        self.assertEqual(svncommands.verify(repo.ui, repo, rev=ctx.node()), 0)
+        self.assertEqual(verify.verify(repo.ui, repo, rev=ctx.node()), 0)
 
     # check a startrev clone
     if layout == 'single' and name not in _skipshallow:
@@ -58,8 +58,8 @@ def _do_case(self, name, stupid, layout)
         shallowtip = shallowrepo['tip']
 
         repo.ui.pushbuffer()
-        self.assertEqual(0, svncommands.verify(repo.ui, shallowrepo,
-                                               rev=shallowtip.node()))
+        self.assertEqual(0, verify.verify(repo.ui, shallowrepo,
+                                          rev=shallowtip.node()))
 
         # viewing diff's of lists of files is easier on the eyes
         self.assertMultiLineEqual('\n'.join(fulltip), '\n'.join(shallowtip),