def test_factory(self): fti = queryUtility(IDexterityFTI, name='Article') factory = fti.factory new_object = createObject(factory) self.assertTrue(IArticle.providedBy(new_object))
def test_adding(self): self.assertTrue(IArticle.providedBy(self.a1))