diff options
author | Richard Jones <richard@commonground.com.au> | 2010-08-04 12:27:36 (GMT) |
---|---|---|
committer | Richard Jones <richard@commonground.com.au> | 2010-08-04 12:27:36 (GMT) |
commit | 6a9e6bbf1a7f2953fef2ebe67c9aac093275e4de (patch) | |
tree | 9c38030471141e6feaf0e1991b0fd7d0ae751a3a /Lib/test/test_smtpd.py | |
parent | 62f68ed31f6ace44f524797787df2eb66ffb306c (diff) | |
download | cpython-6a9e6bbf1a7f2953fef2ebe67c9aac093275e4de.zip cpython-6a9e6bbf1a7f2953fef2ebe67c9aac093275e4de.tar.gz cpython-6a9e6bbf1a7f2953fef2ebe67c9aac093275e4de.tar.bz2 |
fix test_smtplib/test_smtpd collision through pre-loaded reply data in mock_socket
Diffstat (limited to 'Lib/test/test_smtpd.py')
-rw-r--r-- | Lib/test/test_smtpd.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_smtpd.py b/Lib/test/test_smtpd.py index 04cac9a..9d168c7 100644 --- a/Lib/test/test_smtpd.py +++ b/Lib/test/test_smtpd.py @@ -189,8 +189,8 @@ class SMTPDChannelTest(TestCase): self.write_line(b'RCPT To:ham@example') self.write_line(b'DATA') self.write_line(b'data\r\n.') - self.assertEqual(self.server.messages[-1], - ('peer', 'eggs@example', ['spam@example','ham@example'], 'data')) + self.assertEqual(self.server.messages, + [('peer', 'eggs@example', ['spam@example','ham@example'], 'data')]) def test_manual_status(self): # checks that the Channel is able to return a custom status message @@ -209,8 +209,8 @@ class SMTPDChannelTest(TestCase): self.write_line(b'RCPT To:eggs@example') self.write_line(b'DATA') self.write_line(b'data\r\n.') - self.assertEqual(self.server.messages[0], - ('peer', 'foo@example', ['eggs@example'], 'data')) + self.assertEqual(self.server.messages, + [('peer', 'foo@example', ['eggs@example'], 'data')]) def test_RSET_syntax(self): self.write_line(b'RSET hi') |