summaryrefslogtreecommitdiff
path: root/test/test_testing.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-04-26 21:07:40 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-04-26 21:07:40 -0400
commit898a3cdf4cce57be35bc8916b6d8ed9fcd4f4d5b (patch)
tree4904e350c2b3fb626ef87a82056ca00a0968d3d3 /test/test_testing.py
parent0a923897152af561c59282a7a0fecd3bc9d82dad (diff)
downloadpython-coveragepy-898a3cdf4cce57be35bc8916b6d8ed9fcd4f4d5b.tar.gz
imported patch multiline-msg
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 58b6dc8..9bbb7cc 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.