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))
Esempio n. 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))
Esempio n. 4
0
 def test_adding(self):
     self.assertTrue(IPoll.providedBy(self.poll))
Esempio n. 5
0
 def test_adding(self):
     self.assertTrue(IPoll.providedBy(self.poll))
Esempio n. 6
0
 def test_adding(self):
     self.folder.invokeFactory('collective.polls.poll', 'p1')
     p1 = self.folder['p1']
     self.assertTrue(IPoll.providedBy(p1))