changeset 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 e4f9603ab82a
children 1add57910c82
files tests/test_rebuildmeta.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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],