summaryrefslogtreecommitdiff
path: root/test/test_testing.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_testing.py')
-rw-r--r--test/test_testing.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_testing.py b/test/test_testing.py
index 58b6dc82..9bbb7cca 100644
--- a/test/test_testing.py
+++ b/test/test_testing.py
@@ -45,6 +45,12 @@ class TestingTest(TestCase):
self.assertRaises(AssertionError, self.assertMultiLineEqual,
"hello\nthere", "hello\nThere"
)
+ # With messages also.
+ self.assertMultiLineEqual("hi", "hi", "it's ok")
+ self.assertRaisesRegexp(
+ AssertionError, "my message",
+ self.assertMultiLineEqual, "xyz", "abc", "my message"
+ )
def test_assert_raises_regexp(self):
# Raising the right error with the right message passes.