[CMF-checkins] CVS: Products/CMFCalendar/tests - test_Event.py:1.10

Stefan H. Holek stefan at epy.co.at
Sat Jul 31 12:54:31 EDT 2004


Update of /cvs-repository/Products/CMFCalendar/tests
In directory cvs.zope.org:/tmp/cvs-serv1445/CMFCalendar/tests

Modified Files:
	test_Event.py 
Log Message:
Day, month, and year were processed in the wrong order by Event.edit().
Also see http://collector.zope.org/CMF/202


=== Products/CMFCalendar/tests/test_Event.py 1.9 => 1.10 ===
--- Products/CMFCalendar/tests/test_Event.py:1.9	Sat Jul 31 10:06:33 2004
+++ Products/CMFCalendar/tests/test_Event.py	Sat Jul 31 12:54:31 2004
@@ -40,15 +40,17 @@
         assert not event.Title()
 
     def test_edit(self):
+        # Year month and day were processed in the wrong order
+        # Also see http://collector.zope.org/CMF/202
         event = self.site._setObject( 'testimage', Event('editing') )
         event.edit( title='title'
                   , description='description'
                   , eventType=( 'eventType', )
                   , effectiveDay=1
-                  , effectiveMo=1
+                  , effectiveMo=5
                   , effectiveYear=1999
-                  , expirationDay=12
-                  , expirationMo=31
+                  , expirationDay=31
+                  , expirationMo=12
                   , expirationYear=1999
                   , start_time="00:00"
                   , startAMPM="AM"
@@ -61,7 +63,7 @@
         assert event.effective_date == None
         assert event.expiration_date == None
         assert event.end() == DateTime('1999/12/31 23:59')
-        assert event.start() == DateTime('1999/01/01 00:00')
+        assert event.start() == DateTime('1999/05/01 00:00')
         assert not event.contact_name
 
     def test_puke(self):



More information about the CMF-checkins mailing list