def test_factory(self): fti = queryUtility(IDexterityFTI, name='collective.polls.poll') factory = fti.factory new_object = createObject(factory) self.assertTrue(IPoll.providedBy(new_object))
def test_adding(self): self.folder.invokeFactory('collective.polls.poll', 'p1') p1 = self.folder['p1'] self.assertTrue(IPoll.providedBy(p1))
def test_adding(self): self.assertTrue(IPoll.providedBy(self.poll))