- Timestamp:
- 13 Nov 2014, 16:54:17 (10 years ago)
- Location:
- main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests/test_app.py
r11952 r11954 22 22 from zope.component.hooks import setSite 23 23 from zope.interface.verify import verifyClass, verifyObject 24 from waeup.ikoba.app import Institution24 from waeup.ikoba.app import Company 25 25 from waeup.ikoba.interfaces import ( 26 I Institution, IJobManager, VIRT_JOBS_CONTAINER_NAME)26 ICompany, IJobManager, VIRT_JOBS_CONTAINER_NAME) 27 27 from waeup.ikoba.testing import FunctionalLayer, FunctionalTestCase 28 28 29 class InstitutionTests(FunctionalTestCase):29 class CompanyTests(FunctionalTestCase): 30 30 31 31 layer = FunctionalLayer 32 32 33 33 def setUp(self): 34 super( InstitutionTests, self).setUp()34 super(CompanyTests, self).setUp() 35 35 self.workdir = tempfile.mkdtemp() 36 self.getRootFolder()['app'] = Institution()36 self.getRootFolder()['app'] = Company() 37 37 self.app = self.getRootFolder()['app'] 38 38 return 39 39 40 40 def tearDown(self): 41 super( InstitutionTests, self).tearDown()41 super(CompanyTests, self).tearDown() 42 42 shutil.rmtree(self.workdir) 43 43 return 44 44 45 45 def test_ifaces(self): 46 institution = Institution()47 assert verifyClass(I Institution, Institution)48 assert verifyObject(I Institution, institution)46 company = Company() 47 assert verifyClass(ICompany, Company) 48 assert verifyObject(ICompany, company) 49 49 return 50 50 -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests/test_imagestorage.py
r11952 r11954 27 27 from zope.component.hooks import setSite 28 28 from zope.interface.verify import verifyClass, verifyObject 29 from waeup.ikoba.app import Institution29 from waeup.ikoba.app import Company 30 30 from waeup.ikoba.testing import FunctionalLayer, FunctionalTestCase 31 31 from waeup.ikoba.imagestorage import ( … … 228 228 self.fd = open(self.samplefile, 'r') 229 229 self.fd2 = open(self.otherfile, 'r') 230 self.getRootFolder()['app'] = Institution()230 self.getRootFolder()['app'] = Company() 231 231 self.app = self.getRootFolder()['app'] 232 232 self.app['datacenter'].setStoragePath(self.workdir) -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests/test_maintenance.py
r11952 r11954 9 9 from zope.component.hooks import setSite 10 10 from zope.interface import Interface, implements 11 from waeup.ikoba.app import Institution11 from waeup.ikoba.app import Company 12 12 from waeup.ikoba.maintenance import update_catalog 13 13 from waeup.ikoba.testing import FunctionalTestCase, FunctionalLayer … … 41 41 super(UpdateCatalogTests, self).setUp() 42 42 # Setup a sample site for each test 43 app = Institution()43 app = Company() 44 44 self.dc_root = tempfile.mkdtemp() 45 45 app['datacenter'].setStoragePath(self.dc_root) -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests/test_objecthistory.py
r11952 r11954 25 25 from zope.security.management import newInteraction, endInteraction 26 26 from zope.security.testing import Principal, Participation 27 from waeup.ikoba.app import Institution27 from waeup.ikoba.app import Company 28 28 from waeup.ikoba.interfaces import IObjectHistory, IIkobaObject 29 29 from waeup.ikoba.testing import FunctionalTestCase, FunctionalLayer … … 43 43 44 44 # Prepopulate ZODB 45 app = Institution()45 app = Company() 46 46 self.dc_root = tempfile.mkdtemp() 47 47 app['datacenter'].setStoragePath(self.dc_root) -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/tests/test_smtp.py
r11952 r11954 27 27 from zope.component.hooks import setSite 28 28 from zope.sendmail.interfaces import IMailDelivery 29 from waeup.ikoba.app import Institution29 from waeup.ikoba.app import Company 30 30 from waeup.ikoba.interfaces import IMailService 31 31 from waeup.ikoba.smtp import ( … … 341 341 super(ExternalMailerTests, self).setUp() 342 342 # Setup a sample site for each test 343 app = Institution()343 app = Company() 344 344 self.dc_root = tempfile.mkdtemp() 345 345 app['datacenter'].setStoragePath(self.dc_root)
Note: See TracChangeset for help on using the changeset viewer.