mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 16:36:20 +00:00
test_dirnode.py: improve error messages in case timestamp tests fail
This commit is contained in:
parent
09cf1e2a8a
commit
5f50543c3b
@ -159,10 +159,10 @@ class Dirnode(unittest.TestCase, testutil.ShouldFailMixin):
|
|||||||
return d
|
return d
|
||||||
|
|
||||||
def failUnlessGreaterThan(self, a, b):
|
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):
|
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):
|
def stall(self, res, delay=1.0):
|
||||||
d = defer.Deferred()
|
d = defer.Deferred()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user