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 | 6f4a40d34152b7d99be35f4127e76c8beb4d6c06 (patch) | |
tree | 586ae719072019768086efec991041f175291ecf /test/test_testing.py | |
parent | ee2ceb2aba2b71ac0e262fcffa808eae9624d090 (diff) | |
download | python-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.py | 5 |
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" + ) |