summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_rfc822.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-07-11 12:20:59 (GMT)
committerGuido van Rossum <guido@python.org>2007-07-11 12:20:59 (GMT)
commite61fd5b5ed9d677da2f3349078d7f66f707199de (patch)
treee28a7630ed3c285eabc7631f4276a2b06e74682b /Lib/test/test_rfc822.py
parentc9b9de17976a4832f505309b1096f9a7582c7be9 (diff)
downloadcpython-e61fd5b5ed9d677da2f3349078d7f66f707199de.zip
cpython-e61fd5b5ed9d677da2f3349078d7f66f707199de.tar.gz
cpython-e61fd5b5ed9d677da2f3349078d7f66f707199de.tar.bz2
Patch by Christian Heimes to change self.assert_(x == y) into
self.assertEqual(x, y). (Christian used self.failUnlessEqual(), but the double negative makes it hard to grok, so I changed it.)
Diffstat (limited to 'Lib/test/test_rfc822.py')
-rw-r--r--Lib/test/test_rfc822.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_rfc822.py b/Lib/test/test_rfc822.py
index 91e694a..c355950 100644
--- a/Lib/test/test_rfc822.py
+++ b/Lib/test/test_rfc822.py
@@ -29,10 +29,10 @@ class MessageTestCase(unittest.TestCase):
self.assert_(msg.setdefault("New-Header", "New-Value") == "New-Value")
self.assert_(msg.setdefault("New-Header", "Different-Value")
== "New-Value")
- self.assert_(msg["new-header"] == "New-Value")
+ self.assertEqual(msg["new-header"], "New-Value")
- self.assert_(msg.setdefault("Another-Header") == "")
- self.assert_(msg["another-header"] == "")
+ self.assertEqual(msg.setdefault("Another-Header"), "")
+ self.assertEqual(msg["another-header"], "")
def check(self, msg, results):
"""Check addresses and the date."""