def test_factory(self): fti = queryUtility(IDexterityFTI, name='collective.spotlight.spotlight') factory = fti.factory new_object = createObject(factory) self.failUnless(ISpotlight.providedBy(new_object))
def test_adding(self): self.folder.invokeFactory('collective.spotlight.spotlight', 'spotlight') spl1 = self.folder['spotlight'] self.assertTrue(ISpotlight.providedBy(spl1)) self.assertTrue(verifyObject(ISpotlight, spl1))