Changeset 5250 for main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp
- Timestamp:
- 27 Jun 2010, 09:22:03 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/jambtables/tests/test_jambtables.py
r5241 r5250 33 33 from datetime import datetime 34 34 35 from zope.interface.verify import verifyClass, verifyObject 35 36 from zope.site import LocalSiteManager 36 37 from zope.site.hooks import setSite, clearSite 37 38 38 39 from waeup.sirp.app import University 40 from waeup.sirp.datacenter import DataCenter 39 41 from waeup.sirp.jambtables import JAMBDataTable 40 from waeup.sirp.datacenter import DataCenter 42 from waeup.sirp.jambtables.interfaces import IJAMBDataTable 43 41 44 42 45 class JAMBTableTestCaseBase(unittest.TestCase): … … 111 114 table.importFromCSV(self.datafile) 112 115 self.assertNotEqual([], list(table.items())) 116 117 def test_interface_compliance(self): 118 self.assertTrue(verifyClass(IJAMBDataTable, JAMBDataTable)) 119 table = JAMBDataTable() 120 self.assertTrue(verifyObject(IJAMBDataTable, table)) 121 table.importFromCSV(self.datafile) 122 self.assertTrue(verifyObject(IJAMBDataTable, table)) 113 123 114 124 class JAMBTableFunctionalTestCase(JAMBTableTestCaseBase):
Note: See TracChangeset for help on using the changeset viewer.