]> granicus.if.org Git - python/commitdiff
fix test to run and test that smtpd does support ELHO (closes #19125)
authorBenjamin Peterson <benjamin@python.org>
Sun, 29 Sep 2013 14:46:31 +0000 (10:46 -0400)
committerBenjamin Peterson <benjamin@python.org>
Sun, 29 Sep 2013 14:46:31 +0000 (10:46 -0400)
Lib/test/test_smtplib.py

index f93d355285da5e642a6c444cc6efed728ea6b5b9..8d1dbbfc4364d4243c8e85c3141cbe78b1ad28ef 100644 (file)
@@ -239,14 +239,14 @@ class DebuggingServerTests(unittest.TestCase):
         self.assertEqual(smtp.rset(), expected)
         smtp.quit()
 
-    def testNotImplemented(self):
+    def testELHO(self):
         # EHLO isn't implemented in DebuggingServer
         smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
-        expected = (502, b'Error: command "EHLO" not implemented')
+        expected = (250, b'\nSIZE 33554432\nHELP')
         self.assertEqual(smtp.ehlo(), expected)
         smtp.quit()
 
-    def testNotImplemented(self):
+    def testEXPNNotImplemented(self):
         # EXPN isn't implemented in DebuggingServer
         smtp = smtplib.SMTP(HOST, self.port, local_hostname='localhost', timeout=3)
         expected = (502, b'EXPN not implemented')