[Checkins] SVN: zope.sendmail/trunk/src/zope/sendmail/tests/test_mailer.py - does_esmtp is not documented to have meaning before calling ehlo()

Fred L. Drake, Jr. fdrake at gmail.com
Tue Oct 23 15:11:52 EDT 2007


Log message for revision 80971:
  - does_esmtp is not documented to have meaning before calling ehlo()
  - does_esmtp is a boolean attribute, not a method
  

Changed:
  U   zope.sendmail/trunk/src/zope/sendmail/tests/test_mailer.py

-=-
Modified: zope.sendmail/trunk/src/zope/sendmail/tests/test_mailer.py
===================================================================
--- zope.sendmail/trunk/src/zope/sendmail/tests/test_mailer.py	2007-10-23 18:37:30 UTC (rev 80970)
+++ zope.sendmail/trunk/src/zope/sendmail/tests/test_mailer.py	2007-10-23 19:11:52 UTC (rev 80971)
@@ -53,14 +53,12 @@
                 return True
 
             def ehlo(self):
+                self.does_esmtp = True
                 return (200, 'Hello, I am your stupid MTA mock')
 
             def starttls(self):
                 pass
 
-            def does_esmtp(self):
-                return True
-
         if port is None:
             self.mailer = SMTPMailer()
         else:



More information about the Checkins mailing list