diff options
Diffstat (limited to 'lib/testtools/testtools/tests/test_testtools.py')
-rw-r--r-- | lib/testtools/testtools/tests/test_testtools.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/testtools/testtools/tests/test_testtools.py b/lib/testtools/testtools/tests/test_testtools.py index 2845730f9f..2e722e919d 100644 --- a/lib/testtools/testtools/tests/test_testtools.py +++ b/lib/testtools/testtools/tests/test_testtools.py @@ -375,6 +375,10 @@ class TestAssertions(TestCase): '42 is not an instance of %s' % self._formatTypes([Foo, Bar]), self.assertIsInstance, 42, (Foo, Bar)) + def test_assertIsInstance_overridden_message(self): + # assertIsInstance(obj, klass, msg) permits a custom message. + self.assertFails("foo", self.assertIsInstance, 42, str, "foo") + def test_assertIs(self): # assertIs asserts that an object is identical to another object. self.assertIs(None, None) |