Changeset 8163


Ignore:
Timestamp:
15 Apr 2012, 14:47:01 (13 years ago)
Author:
uli
Message:

Fix test to work also during winter and outside Germany ;-)

File:
1 edited

Legend:

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

    r8161 r8163  
    2626from zope.component import createObject
    2727from zope.component.hooks import setSite, clearSite
     28from zope.datetime import parseDatetimetz
    2829from zope.interface.verify import verifyClass, verifyObject
    2930
     
    467468        self.assertEqual(studylevel.level, 100)
    468469        shutil.rmtree(os.path.dirname(fin_file))
    469        
     470
    470471
    471472class CourseTicketProcessorTest(StudentImportExportSetup):
     
    638639            p_id='p1290797973744'), self.app)
    639640        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)
    643644        shutil.rmtree(os.path.dirname(fin_file))
    644645
Note: See TracChangeset for help on using the changeset viewer.