[Checkins] SVN: Zope3/branches/jim-adapter/src/zope/app/mail/tests/test_directives.py Fix the syntax error I didnt see for all the dprecation warnings and the silly mistakes I missed because of the syntax error.

Brian Sutherland jinty at web.de
Tue Apr 11 19:06:03 EDT 2006


Log message for revision 66870:
  Fix the syntax error I didnt see for all the dprecation warnings and the silly mistakes I missed because of the syntax error.

Changed:
  U   Zope3/branches/jim-adapter/src/zope/app/mail/tests/test_directives.py

-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/mail/tests/test_directives.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/mail/tests/test_directives.py	2006-04-11 22:23:45 UTC (rev 66869)
+++ Zope3/branches/jim-adapter/src/zope/app/mail/tests/test_directives.py	2006-04-11 23:06:01 UTC (rev 66870)
@@ -21,7 +21,7 @@
 import threading
 import time
 
-from zope.component
+import zope.component
 from zope.component.testing import PlacelessSetup
 from zope.configuration import xmlconfig
 from zope.interface import implements
@@ -58,8 +58,8 @@
         self.testMailer = Mailer()
 
         gsm = zope.component.getGlobalSiteManager()
-        gsm.registerUtility(IMailer, Mailer(), "test.smtp")
-        gsm.registerUtility(IMailer, self.testMailer, "test.mailer")
+        gsm.registerUtility(Mailer(), IMailer, "test.smtp")
+        gsm.registerUtility(self.testMailer, IMailer, "test.mailer")
 
         self.context = xmlconfig.file("mail.zcml", zope.app.mail.tests)
         self.orig_maildir = delivery.Maildir
@@ -85,7 +85,7 @@
         self.assertEqual(self.mailbox, delivery.queuePath)
 
     def testDirectDelivery(self):
-        delivery = zope.componenet.getUtility(IMailDelivery, "Mail2")
+        delivery = zope.component.getUtility(IMailDelivery, "Mail2")
         self.assertEqual('DirectMailDelivery', delivery.__class__.__name__)
         self.assert_(self.testMailer is delivery.mailer)
 



More information about the Checkins mailing list