summaryrefslogtreecommitdiff
path: root/test/backunittest.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/backunittest.py')
-rw-r--r--test/backunittest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/backunittest.py b/test/backunittest.py
index 3723dea4..30da78eb 100644
--- a/test/backunittest.py
+++ b/test/backunittest.py
@@ -43,6 +43,13 @@ class TestCase(unittest.TestCase):
msg = msg or ('%r found in %r' % (member, container))
self.fail(msg)
+ if _need('assertGreater'):
+ def assertGreater(self, a, b, msg=None):
+ """Assert that `a` is greater than `b`."""
+ if not a > b:
+ msg = msg or ('%r not greater than %r' % (a, b))
+ self.fail(msg)
+
if _need('assertRaisesRegexp'):
def assertRaisesRegexp(self, excClass, regexp, callobj, *args, **kw):
""" Just like unittest.TestCase.assertRaises,