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