Changeset 8163 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 15 Apr 2012, 14:47:01 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py
r8161 r8163 26 26 from zope.component import createObject 27 27 from zope.component.hooks import setSite, clearSite 28 from zope.datetime import parseDatetimetz 28 29 from zope.interface.verify import verifyClass, verifyObject 29 30 … … 467 468 self.assertEqual(studylevel.level, 100) 468 469 shutil.rmtree(os.path.dirname(fin_file)) 469 470 470 471 471 472 class CourseTicketProcessorTest(StudentImportExportSetup): … … 638 639 p_id='p1290797973744'), self.app) 639 640 self.assertEqual(payment.p_id, 'p1290797973744') 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)')641 642 expected = parseDatetimetz('2010-11-26 19:59:33.744000') 643 self.assertEqual(payment.creation_date, expected) 643 644 shutil.rmtree(os.path.dirname(fin_file)) 644 645
Note: See TracChangeset for help on using the changeset viewer.