def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='collective.conference.speaker')
     factory = fti.factory
     new_object = createObject(factory)
     self.failUnless(ISpeaker.providedBy(new_object))
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='collective.conference.speaker')
     factory = fti.factory
     new_object = createObject(factory)
     self.failUnless(ISpeaker.providedBy(new_object))
 def test_adding(self):
     self.folder.invokeFactory('collective.conference.speaker', 'speaker1')
     p1 = self.folder['speaker1']
     self.failUnless(ISpeaker.providedBy(p1))
 def test_adding(self):
     self.folder.invokeFactory('collective.conference.speaker', 'speaker1')
     p1 = self.folder['speaker1']
     self.failUnless(ISpeaker.providedBy(p1))