def test_adding(self): self.portal.invokeFactory("SGVizlerView", "SGVizlerView") self.assertTrue(ISGVizlerView.providedBy(self.portal["SGVizlerView"]))
def test_factory(self): fti = queryUtility(IDexterityFTI, name="SGVizlerView") factory = fti.factory obj = createObject(factory) self.assertTrue(ISGVizlerView.providedBy(obj))