diff options
Diffstat (limited to 'python/samba')
-rw-r--r-- | python/samba/tests/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py index 65a727aaf6..480b2c8135 100644 --- a/python/samba/tests/__init__.py +++ b/python/samba/tests/__init__.py @@ -66,6 +66,10 @@ class TestCase(unittest.TestCase): def assertIsNot(self, a, b): self.assertTrue(a is not b) + if not getattr(unittest.TestCase, "assertIsInstance", None): + def assertIsInstance(self, a, b): + self.assertTrue(isinstance(a, b)) + if not getattr(unittest.TestCase, "addCleanup", None): def addCleanup(self, fn, *args, **kwargs): self._cleanups = getattr(self, "_cleanups", []) + [ |