def test_adding(self): self.portal.invokeFactory('Minuta', 'Minuta') self.assertTrue( IMinuta.providedBy(self.portal['Minuta']) )
def test_adding(self): self.portal.invokeFactory('Minuta', 'Minuta') self.assertTrue(IMinuta.providedBy(self.portal['Minuta']))
def test_factory(self): fti = queryUtility(IDexterityFTI, name='Minuta') factory = fti.factory obj = createObject(factory) self.assertTrue(IMinuta.providedBy(obj))