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
commit6f4a40d34152b7d99be35f4127e76c8beb4d6c06 (patch)
tree586ae719072019768086efec991041f175291ecf /test/test_testing.py
parentee2ceb2aba2b71ac0e262fcffa808eae9624d090 (diff)
downloadpython-coveragepy-git-6f4a40d34152b7d99be35f4127e76c8beb4d6c06.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 1e22202a..5d1ac0bc 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"
+ )