Changeset 5237 for main/waeup.sirp
- Timestamp:
- 26 Jun 2010, 10:27:57 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-fasttables/src/waeup/sirp/jambtables/tests/test_jambtables.py
r5236 r5237 30 30 31 31 import grok 32 33 from datetime import datetime 32 34 33 35 from zope.site import LocalSiteManager … … 85 87 exists = os.path.exists(path) 86 88 self.assertEqual(exists, False) 89 90 def test_import_datetime(self): 91 table = JAMBDataTable() 92 self.assertTrue(table.import_datetime is None) 93 table.importFromCSV(self.datafile) 94 now = datetime.now() 95 diff = now - table.import_datetime 96 self.assertTrue(diff.seconds < 5) 97 table.clear() 98 self.assertTrue(table.import_datetime is None) 87 99 88 100
Note: See TracChangeset for help on using the changeset viewer.