diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-21 09:58:22 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-11-21 09:58:22 -0500 |
commit | c81dfe30adab299f1da3b26b2777b14b895c70a3 (patch) | |
tree | 4c9b0dff446fd68d5cb5c1ec61b0f144facaf974 /test/test_testing.py | |
parent | da50a1298fa83a6e6d9a96f08c72b20140579f24 (diff) | |
download | python-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.py | 5 |
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" + ) |