- Timestamp:
- 13 Nov 2014, 16:54:17 (10 years ago)
- File:
-
- 1 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
Note: See TracChangeset for help on using the changeset viewer.