[Zope3-checkins] CVS: Zope3/src/zope/app/mail/tests - test_asyncmailservice.py:1.4 test_mailevents.py:1.2

Steve Alexander steve@cat-box.net
Fri, 6 Jun 2003 15:29:36 -0400


Update of /cvs-repository/Zope3/src/zope/app/mail/tests
In directory cvs.zope.org:/tmp/cvs-serv7875/src/zope/app/mail/tests

Modified Files:
	test_asyncmailservice.py test_mailevents.py 
Log Message:
Changed old-style __implements__ to new-style implements()

Also, fixed up some incorrect formatting.


=== Zope3/src/zope/app/mail/tests/test_asyncmailservice.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/mail/tests/test_asyncmailservice.py:1.3	Mon May 19 06:03:37 2003
+++ Zope3/src/zope/app/mail/tests/test_asyncmailservice.py	Fri Jun  6 15:29:04 2003
@@ -20,10 +20,11 @@
 from unittest import TestCase, TestSuite, makeSuite
 from zope.app.interfaces.mail import IAsyncMailService, IMailer
 from zope.app.mail.service import AsyncMailService
+from zope.interface import implements
 
 
 class MailerStub:
-    __implements__ = IMailer
+    implements(IMailer)
 
     def send(self, fromaddr, toaddrs, message,
              hostname, port, username, password):


=== Zope3/src/zope/app/mail/tests/test_mailevents.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/mail/tests/test_mailevents.py:1.1	Wed Apr 16 09:45:44 2003
+++ Zope3/src/zope/app/mail/tests/test_mailevents.py	Fri Jun  6 15:29:04 2003
@@ -20,10 +20,10 @@
 from unittest import TestCase, TestSuite, makeSuite
 from zope.app.interfaces.mail import IMailer, IMailSentEvent
 from zope.app.mail.event import MailSentEvent
-
+from zope.interface import implements
 
 class MailerStub:
-    __implements__ = IMailer
+    implements(IMailer)
 
     def send(self, fromaddr, toaddrs, message,
              hostname, port, username, password):