def test_factory(self): fti = queryUtility( IDexterityFTI, name='PressClip' ) factory = fti.factory new_object = createObject(factory) self.assertTrue(IPressClip.providedBy(new_object))
def test_adding(self): self.portal.invokeFactory( 'PressClip', 'doc1' ) self.assertTrue(IPressClip.providedBy(self.portal['doc1']))