def test_factory(self):
     fti = queryUtility(IDexterityFTI, name='collective.elections.election')
     factory = fti.factory
     new_object = createObject(factory)
     self.assertTrue(IElection.providedBy(new_object))
 def test_factory(self):
     fti = queryUtility(IDexterityFTI,
                        name='collective.elections.election')
     factory = fti.factory
     new_object = createObject(factory)
     self.assertTrue(IElection.providedBy(new_object))
 def test_adding(self):
     self.folder.invokeFactory('collective.elections.election', 'e1')
     e1 = self.folder['e1']
     self.assertTrue(IElection.providedBy(e1))
 def test_adding(self):
     self.folder.invokeFactory('collective.elections.election', 'e1')
     e1 = self.folder['e1']
     self.assertTrue(IElection.providedBy(e1))