diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-04-26 21:07:40 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-04-26 21:07:40 -0400 |
commit | 3e4217569a648776e7d6a689f0ed5b3e87caccbe (patch) | |
tree | 13e16da9a838028098e7e8d7dfef57e3e13d32b3 /test/test_testing.py | |
parent | c96af2469f9bfc120e04284bb30df68ed356aa2d (diff) | |
download | python-coveragepy-git-3e4217569a648776e7d6a689f0ed5b3e87caccbe.tar.gz |
imported patch multiline-msg
Diffstat (limited to 'test/test_testing.py')
-rw-r--r-- | test/test_testing.py | 6 |
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. |