summaryrefslogtreecommitdiff
path: root/test/test_testing.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-21 09:58:22 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-21 09:58:22 -0500
commitc81dfe30adab299f1da3b26b2777b14b895c70a3 (patch)
tree4c9b0dff446fd68d5cb5c1ec61b0f144facaf974 /test/test_testing.py
parentda50a1298fa83a6e6d9a96f08c72b20140579f24 (diff)
downloadpython-coveragepy-c81dfe30adab299f1da3b26b2777b14b895c70a3.tar.gz
Add a multiline test assert, lifted from Py3.1
Diffstat (limited to 'test/test_testing.py')
-rw-r--r--test/test_testing.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_testing.py b/test/test_testing.py
index 1e22202..5d1ac0b 100644
--- a/test/test_testing.py
+++ b/test/test_testing.py
@@ -28,3 +28,8 @@ class TestingTest(CoverageTest):
"hello there", "^hello$"
)
+ def test_assert_multiline_equal(self):
+ self.assert_multiline_equal("hello", "hello")
+ self.assertRaises(AssertionError, self.assert_matches,
+ "hello there", "Hello there"
+ )