summaryrefslogtreecommitdiff
path: root/test/backunittest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-12-02 07:27:14 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-12-02 07:27:14 -0500
commite2c55d3f8436cc91290897f9ef9d1a478b9d218d (patch)
treeaafeffb08566ad99b2ce16cf92fc5d5adabcaeba /test/backunittest.py
parente657eb27575a5932d1bb5f488fe0643137943a6a (diff)
downloadpython-coveragepy-e2c55d3f8436cc91290897f9ef9d1a478b9d218d.tar.gz
Massive eol whitespace clean-up.
Diffstat (limited to 'test/backunittest.py')
-rw-r--r--test/backunittest.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/backunittest.py b/test/backunittest.py
index 2088f2f..28978c7 100644
--- a/test/backunittest.py
+++ b/test/backunittest.py
@@ -12,10 +12,10 @@ def _need(method):
class TestCase(unittest.TestCase):
"""Just like unittest.TestCase, but with assert methods added.
-
+
Designed to be compatible with 3.1 unittest. Methods are only defined if
the builtin `unittest` doesn't have them.
-
+
"""
if _need('assertFalse'):
def assertFalse(self, exp):
@@ -69,16 +69,16 @@ class TestCase(unittest.TestCase):
if _need('assertMultiLineEqual'):
def assertMultiLineEqual(self, first, second):
"""Assert that two multi-line strings are equal.
-
+
If they aren't, show a nice diff.
-
+
"""
# Adapted from Py3.1 unittest.
self.assert_(isinstance(first, str), (
'First argument is not a string'))
self.assert_(isinstance(second, str), (
'Second argument is not a string'))
-
+
if first != second:
msg = ''.join(difflib.ndiff(first.splitlines(True),
second.splitlines(True)))