[CMF-checkins] CVS: Products/CMFCalendar/tests - test_Calendar.py:1.17

Florent Guillaume fg at nuxeo.com
Sun Mar 27 13:08:06 EST 2005


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

Modified Files:
	test_Calendar.py 
Log Message:
Removed spurious skin name before invokeFactory.


=== Products/CMFCalendar/tests/test_Calendar.py 1.16 => 1.17 ===
--- Products/CMFCalendar/tests/test_Calendar.py:1.16	Sun Mar 20 16:19:46 2005
+++ Products/CMFCalendar/tests/test_Calendar.py	Sun Mar 27 13:08:05 2005
@@ -172,7 +172,7 @@
 
     def test_singleEventCalendarRendering(self):
 
-        self.Site.Members.folder_factories.invokeFactory(type_name="Event",id='Event1')
+        self.Site.Members.invokeFactory(type_name="Event",id='Event1')
         event = self.app.restrictedTraverse('/CalendarTest/Members/Event1')
         event.edit( title='title'
                     , description='description'
@@ -245,7 +245,7 @@
 
     def test_spanningEventCalendarRendering(self):
 
-        self.Site.Members.folder_factories.invokeFactory(type_name="Event",id='Event1')
+        self.Site.Members.invokeFactory(type_name="Event",id='Event1')
         event = self.app.restrictedTraverse('/CalendarTest/Members/Event1')
         event.edit( title='title'
                     , description='description'
@@ -331,7 +331,7 @@
 
     def test_singleDayRendering(self):
 
-        self.Site.Members.folder_factories.invokeFactory(type_name="Event",id='Event1')
+        self.Site.Members.invokeFactory(type_name="Event",id='Event1')
         event = self.app.restrictedTraverse('/CalendarTest/Members/Event1')
         event.edit( title='title'
                     , description='description'
@@ -354,7 +354,7 @@
 
         assert len(self.Site.portal_calendar.getEventsForThisDay(thisDay=DateTime('2002/5/1'))) == 1
 
-        self.Site.Members.folder_factories.invokeFactory(type_name="Event",id='Event2')
+        self.Site.Members.invokeFactory(type_name="Event",id='Event2')
         event = self.app.restrictedTraverse('/CalendarTest/Members/Event2')
         event.edit( title='title'
                     , description='description'
@@ -377,7 +377,7 @@
 
         assert len(self.Site.portal_calendar.getEventsForThisDay(thisDay=DateTime('2002/5/1'))) == 2
 
-        self.Site.Members.folder_factories.invokeFactory(type_name="Event",id='Event3')
+        self.Site.Members.invokeFactory(type_name="Event",id='Event3')
         event = self.app.restrictedTraverse('/CalendarTest/Members/Event3')
         event.edit( title='title'
                     , description='description'
@@ -400,7 +400,7 @@
 
         assert len(self.Site.portal_calendar.getEventsForThisDay(thisDay=DateTime('2002/5/1'))) == 3
 
-        self.Site.Members.folder_factories.invokeFactory(type_name="Event",id='Event4')
+        self.Site.Members.invokeFactory(type_name="Event",id='Event4')
         event = self.app.restrictedTraverse('/CalendarTest/Members/Event4')
         event.edit( title='title'
                     , description='description'
@@ -423,7 +423,7 @@
 
         assert len(self.Site.portal_calendar.getEventsForThisDay(thisDay=DateTime('2002/5/1'))) == 4
 
-        self.Site.Members.folder_factories.invokeFactory(type_name="Event",id='Event5')
+        self.Site.Members.invokeFactory(type_name="Event",id='Event5')
         event = self.app.restrictedTraverse('/CalendarTest/Members/Event5')
         event.edit( title='title'
                     , description='description'



More information about the CMF-checkins mailing list