Changeset 8167
- Timestamp:
- 15 Apr 2012, 17:52:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py
r8163 r8167 26 26 from zope.component import createObject 27 27 from zope.component.hooks import setSite, clearSite 28 from zope.datetime import parseDatetimetz29 28 from zope.interface.verify import verifyClass, verifyObject 30 29 … … 468 467 self.assertEqual(studylevel.level, 100) 469 468 shutil.rmtree(os.path.dirname(fin_file)) 470 469 471 470 472 471 class CourseTicketProcessorTest(StudentImportExportSetup): … … 639 638 p_id='p1290797973744'), self.app) 640 639 self.assertEqual(payment.p_id, 'p1290797973744') 641 642 expected = parseDatetimetz('2010-11-26 19:59:33.744000')643 self.assertEqual( payment.creation_date, expected)640 cdate = payment.creation_date.strftime("%Y-%m-%d %H:%M:%S") 641 self.assertEqual(cdate, "2010-11-26 19:59:33") 642 self.assertEqual(str(payment.creation_date.tzinfo),'tzinfo(60)') 644 643 shutil.rmtree(os.path.dirname(fin_file)) 645 644
Note: See TracChangeset for help on using the changeset viewer.