diff options
-rw-r--r-- | python/samba/tests/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py index d85260c306..86ec3dff13 100644 --- a/python/samba/tests/__init__.py +++ b/python/samba/tests/__init__.py @@ -57,6 +57,14 @@ class TestCase(unittest.TestCase): def skipTest(self, reason): raise SkipTest(reason) + if not getattr(unittest.TestCase, "assertIs", None): + def assertIs(self, a, b): + self.assertTrue(a is b) + + if not getattr(unittest.TestCase, "assertIsNot", None): + def assertIsNot(self, a, b): + self.assertTrue(a is not b) + class LdbTestCase(unittest.TestCase): """Trivial test case for running tests against a LDB.""" |