[Zope3-checkins] CVS: Zope3/src/zope/app/mail/tests - test_maildir.py:1.6 test_service.py:1.4

Albertas Agejevas alga at pov.lt
Tue Sep 23 18:16:14 EDT 2003


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

Modified Files:
	test_maildir.py test_service.py 
Log Message:
Fixed the mail service tests which would not run in a loop.


=== Zope3/src/zope/app/mail/tests/test_maildir.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/mail/tests/test_maildir.py:1.5	Tue Jul  1 05:46:53 2003
+++ Zope3/src/zope/app/mail/tests/test_maildir.py	Tue Sep 23 18:16:13 2003
@@ -149,6 +149,7 @@
         self.maildir_module.socket = self.old_socket_module
         self.maildir_module.MaildirMessageWriter.open = open
         self.fake_os_module._stat_never_fails = False
+        self.fake_os_module.path._exists_never_fails = False
 
     def test_factory(self):
         from zope.app.interfaces.mail import IMaildirFactory, IMaildir


=== Zope3/src/zope/app/mail/tests/test_service.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/mail/tests/test_service.py:1.3	Sun Aug 17 02:07:17 2003
+++ Zope3/src/zope/app/mail/tests/test_service.py	Tue Sep 23 18:16:13 2003
@@ -176,6 +176,8 @@
 
     def tearDown(self):
         self.mail_service_module.Maildir = self.old_Maildir
+        MaildirWriterStub.commited_messages = []
+        MaildirWriterStub.aborted_messages = []
 
     def testInterface(self):
         from zope.app.interfaces.mail import IQueuedMailService




More information about the Zope3-Checkins mailing list