def test_adding(self): self.folder.invokeFactory("emas.app.order", "order1") order1 = self.folder["order1"] self.failUnless(IOrder.providedBy(order1))
def test_factory(self): fti = queryUtility(IDexterityFTI, name="emas.app.order") factory = fti.factory new_object = createObject(factory) self.failUnless(IOrder.providedBy(new_object))
def test_adding(self): self.folder.invokeFactory('emas.app.order', 'order1') order1 = self.folder['order1'] self.failUnless(IOrder.providedBy(order1))