Changeset 8167


Ignore:
Timestamp:
15 Apr 2012, 17:52:29 (13 years ago)
Author:
uli
Message:

Rollback r8163.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py

    r8163 r8167  
    2626from zope.component import createObject
    2727from zope.component.hooks import setSite, clearSite
    28 from zope.datetime import parseDatetimetz
    2928from zope.interface.verify import verifyClass, verifyObject
    3029
     
    468467        self.assertEqual(studylevel.level, 100)
    469468        shutil.rmtree(os.path.dirname(fin_file))
    470 
     469       
    471470
    472471class CourseTicketProcessorTest(StudentImportExportSetup):
     
    639638            p_id='p1290797973744'), self.app)
    640639        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)')
    644643        shutil.rmtree(os.path.dirname(fin_file))
    645644
Note: See TracChangeset for help on using the changeset viewer.