summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_unittest.py8
-rw-r--r--Lib/unittest.py8
2 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_unittest.py b/Lib/test/test_unittest.py
index ae91a87..21e0806 100644
--- a/Lib/test/test_unittest.py
+++ b/Lib/test/test_unittest.py
@@ -3010,13 +3010,13 @@ class TestLongMessage(TestCase):
def testAssertTrue(self):
self.assertMessages('assertTrue', (False,),
- ["^False is not True$", "^oops$", "^False is not True$",
- "^False is not True : oops$"])
+ ["^False is not true$", "^oops$", "^False is not true$",
+ "^False is not true : oops$"])
def testAssertFalse(self):
self.assertMessages('assertFalse', (True,),
- ["^True is not False$", "^oops$", "^True is not False$",
- "^True is not False : oops$"])
+ ["^True is not false$", "^oops$", "^True is not false$",
+ "^True is not false : oops$"])
def testNotEqual(self):
self.assertMessages('assertNotEqual', (1, 1),
diff --git a/Lib/unittest.py b/Lib/unittest.py
index 9f5cea5e..03a11b7 100644
--- a/Lib/unittest.py
+++ b/Lib/unittest.py
@@ -540,15 +540,15 @@ class TestCase(object):
raise self.failureException(msg)
def assertFalse(self, expr, msg=None):
- "Fail the test if the expression is true."
+ """Check that the expression is false."""
if expr:
- msg = self._formatMessage(msg, "%r is not False" % expr)
+ msg = self._formatMessage(msg, "%r is not false" % expr)
raise self.failureException(msg)
def assertTrue(self, expr, msg=None):
- """Fail the test unless the expression is true."""
+ """Check that the expression is true."""
if not expr:
- msg = self._formatMessage(msg, "%r is not True" % expr)
+ msg = self._formatMessage(msg, "%r is not true" % expr)
raise self.failureException(msg)
def _formatMessage(self, msg, standardMsg):