def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='collective.polls.poll')
     factory = fti.factory
     new_object = createObject(factory)
     self.assertTrue(IPoll.providedBy(new_object))
 def test_adding(self):
     self.folder.invokeFactory('collective.polls.poll', 'p1')
     p1 = self.folder['p1']
     self.assertTrue(IPoll.providedBy(p1))
示例#3
0
 def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='collective.polls.poll')
     factory = fti.factory
     new_object = createObject(factory)
     self.assertTrue(IPoll.providedBy(new_object))
示例#4
0
 def test_adding(self):
     self.assertTrue(IPoll.providedBy(self.poll))
示例#5
0
 def test_adding(self):
     self.assertTrue(IPoll.providedBy(self.poll))
示例#6
0
 def test_adding(self):
     self.folder.invokeFactory('collective.polls.poll', 'p1')
     p1 = self.folder['p1']
     self.assertTrue(IPoll.providedBy(p1))