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