def test_adding_in_a_track(self):
     self.track.invokeFactory('conference.talk', 'talk')
     talk = self.track['talk']
     self.assertTrue(ITalk.providedBy(talk))
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='conference.talk')
     factory = fti.factory
     new_object = createObject(factory)
     self.assertTrue(ITalk.providedBy(new_object))
 def test_adding_as_manager(self):
     self.program.invokeFactory('conference.talk', 'talk')
     talk = self.program['talk']
     self.assertTrue(ITalk.providedBy(talk))