From: Stefan Metzmacher Date: Mon, 29 Jun 2015 06:41:22 +0000 (+0200) Subject: python/samba/tests: add fallbacks for assert{Less,Greater}[Equal]() X-Git-Tag: talloc-2.1.3~323 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24ea9175f41e391ce48d21dedf0e79fb16f7352e;p=thirdparty%2Fsamba.git python/samba/tests: add fallbacks for assert{Less,Greater}[Equal]() Signed-off-by: Stefan Metzmacher Reviewed-by: Guenther Deschner --- diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py index 558e1b76fba..b53c4ea027f 100644 --- a/python/samba/tests/__init__.py +++ b/python/samba/tests/__init__.py @@ -95,6 +95,18 @@ class TestCase(unittest.TestCase): def assertIsNone(self, a, msg=None): self.assertTrue(a is None, msg) + def assertGreater(self, a, b, msg=None): + self.assertTrue(a > b, msg) + + def assertGreaterEqual(self, a, b, msg=None): + self.assertTrue(a >= b, msg) + + def assertLess(self, a, b, msg=None): + self.assertTrue(a < b, msg) + + def assertLessEqual(self, a, b, msg=None): + self.assertTrue(a <= b, msg) + def addCleanup(self, fn, *args, **kwargs): self._cleanups = getattr(self, "_cleanups", []) + [ (fn, args, kwargs)]