コード例 #1
0
 def test_adding(self):
     self.portal.invokeFactory("SGVizlerView", "SGVizlerView")
     self.assertTrue(ISGVizlerView.providedBy(self.portal["SGVizlerView"]))
コード例 #2
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name="SGVizlerView")
     factory = fti.factory
     obj = createObject(factory)
     self.assertTrue(ISGVizlerView.providedBy(obj))