summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/samba/tests/__init__.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/python/samba/tests/__init__.py b/python/samba/tests/__init__.py
index 840e5c3628..3e7094fe06 100644
--- a/python/samba/tests/__init__.py
+++ b/python/samba/tests/__init__.py
@@ -64,14 +64,17 @@ class TestCase(unittest.TestCase):
def assertIn(self, member, container, msg=None):
self.assertTrue(member in container, msg)
- def assertIs(self, a, b):
- self.assertTrue(a is b)
+ def assertIs(self, a, b, msg=None):
+ self.assertTrue(a is b, msg)
- def assertIsNot(self, a, b):
- self.assertTrue(a is not b)
+ def assertIsNot(self, a, b, msg=None):
+ self.assertTrue(a is not b, msg)
- def assertIsInstance(self, a, b):
- self.assertTrue(isinstance(a, b))
+ def assertIsNotNone(self, a, msg=None):
+ self.assertTrue(a is not None)
+
+ def assertIsInstance(self, a, b, msg=None):
+ self.assertTrue(isinstance(a, b), msg)
def assertIsNone(self, a, msg=None):
self.assertTrue(a is None, msg)