Mercurial > hgsubversion
diff tests/test_rebuildmeta.py @ 655:dcac6dc1abe6
test_rebuildmeta: make an assertion more helpful.
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Fri, 06 Aug 2010 14:43:40 +0200 |
parents | d2ef7220a079 |
children | e1e2af66953d |
line wrap: on
line diff
--- a/tests/test_rebuildmeta.py +++ b/tests/test_rebuildmeta.py @@ -60,7 +60,9 @@ def _do_case(self, name, stupid, single) srcinfo = srcbi[branch] destinfo = destbi[branch] if srcinfo[:2] == (None, 0) or destinfo[:2] == (None, 0): - self.assert_(srcinfo[2] <= destinfo[2]) + self.assertTrue(srcinfo[2] <= destinfo[2], + 'Latest revision for %s decreased from %d to %d!' + % (branch or 'default', srcinfo[2], destinfo[2])) self.assertEqual(srcinfo[0], destinfo[0]) else: pr = sorted(filter(lambda x: x[1] == srcinfo[0] and x[0] <= srcinfo[1],