test_dirnode.py: improve error messages in case timestamp tests fail

This commit is contained in:
Brian Warner 2008-02-11 17:37:51 -07:00
parent 09cf1e2a8a
commit 5f50543c3b

View File

@ -159,10 +159,10 @@ class Dirnode(unittest.TestCase, testutil.ShouldFailMixin):
return d
def failUnlessGreaterThan(self, a, b):
self.failUnless(a > b, "%s should be > %s" % (a, b))
self.failUnless(a > b, "%r should be > %r" % (a, b))
def failUnlessGreaterOrEqualThan(self, a, b):
self.failUnless(a >= b, "%s should be >= %s" % (a, b))
self.failUnless(a >= b, "%r should be >= %r" % (a, b))
def stall(self, res, delay=1.0):
d = defer.Deferred()