Beispiel #1
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='plone.app.event.dx.event')
     factory = fti.factory
     new_object = createObject(factory)
     self.failUnless(IDXEvent.providedBy(new_object))
     self.failUnless(IDXEventRecurrence.providedBy(new_object))
     self.failUnless(IDXEventLocation.providedBy(new_object))
     self.failUnless(IDXEventAttendees.providedBy(new_object))
     self.failUnless(IDXEventContact.providedBy(new_object))
Beispiel #2
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='plone.app.event.dx.event')
     factory = fti.factory
     new_object = createObject(factory)
     self.failUnless(IDXEvent.providedBy(new_object))
     self.failUnless(IDXEventRecurrence.providedBy(new_object))
     self.failUnless(IDXEventLocation.providedBy(new_object))
     self.failUnless(IDXEventAttendees.providedBy(new_object))
     self.failUnless(IDXEventContact.providedBy(new_object))
 def test_adding(self):
     self.portal.invokeFactory('plone.app.event.dx.event', 'event1',
             start=datetime(2011,11,11,11,00),
             end=datetime(2011,11,11,12,00),
             timezone='CET',
             whole_day=False)
     e1 = self.portal['event1']
     self.failUnless(IDXEvent.providedBy(e1))
     self.failUnless(IDXEventRecurrence.providedBy(e1))
     self.failUnless(IDXEventLocation.providedBy(e1))
     self.failUnless(IDXEventAttendees.providedBy(e1))
     self.failUnless(IDXEventContact.providedBy(e1))
Beispiel #4
0
    def test_adding(self):
        self.portal.invokeFactory('plone.app.event.dx.event',
                                  'event1',
                                  start=datetime(2011, 11, 11, 11, 0),
                                  end=datetime(2011, 11, 11, 12, 0),
                                  timezone=TZNAME,
                                  whole_day=False)
        e1 = self.portal['event1']
        self.failUnless(IDXEvent.providedBy(e1))
        self.failUnless(IDXEventRecurrence.providedBy(e1))
        self.failUnless(IDXEventLocation.providedBy(e1))
        self.failUnless(IDXEventAttendees.providedBy(e1))
        self.failUnless(IDXEventContact.providedBy(e1))

        self.portal.manage_delObjects(['event1'])