Changeset 8200 for main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
- Timestamp:
- 17 Apr 2012, 23:35:24 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py
r8008 r8200 20 20 import datetime 21 21 import os 22 import pytz 22 23 import shutil 23 24 import tempfile … … 157 158 u'>>de<<\nDieser Text kann von anonymen Benutzern ' 158 159 u'gelesen werden.') 159 self.assertEqual(container.startdate, datetime.date(2012, 3, 1)) 160 self.assertEqual(container.enddate, datetime.date(2012, 4, 25)) 160 self.assertEqual(container.startdate, 161 datetime.datetime(2012, 3, 1, 0, 0, tzinfo=pytz.utc)) 162 self.assertEqual(container.enddate, 163 datetime.datetime(2012, 4, 25, 0, 0, tzinfo=pytz.utc)) 161 164 shutil.rmtree(os.path.dirname(fin_file)) 162 165 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r8069 r8200 19 19 Test the applicant-related UI components. 20 20 """ 21 import pytz 21 22 import shutil 22 23 import tempfile … … 89 90 applicantscontainer.mode = 'create' 90 91 delta = timedelta(days=10) 91 applicantscontainer.startdate = date .today() - delta92 applicantscontainer.enddate = date .today() + delta92 applicantscontainer.startdate = datetime.now(pytz.utc) - delta 93 applicantscontainer.enddate = datetime.now(pytz.utc) + delta 93 94 self.app['applicants']['app2009'] = applicantscontainer 94 95 self.applicantscontainer = self.app['applicants']['app2009'] -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
r8069 r8200 1 1 import datetime 2 2 import os 3 import pytz 3 4 import shutil 4 5 import tempfile … … 56 57 container.description = u'Some Description\nwith linebreak\n' 57 58 container.description += u'<<de>>man spriht deutsh' 58 container.startdate = datetime.date(2012, 1, 1) 59 container.enddate = datetime.date(2012, 1, 31) 59 container.startdate = datetime.datetime( 60 2012, 1, 1, 12, 0, 0, tzinfo=pytz.utc) 61 container.enddate = datetime.datetime( 62 2012, 1, 31, 23, 0, 0, tzinfo=pytz.utc) 60 63 return container 61 64 … … 74 77 'dp2012,General Studies 2012/13,app,100,2012,basic,' 75 78 '"Some Description\nwith linebreak\n<<de>>man spriht deutsh",' 76 '2012-01-01 ,2012-01-31,1\r\n'79 '2012-01-01 12:00:00+00:00,2012-01-31 23:00:00+00:00,1\r\n' 77 80 ) 78 81 return
Note: See TracChangeset for help on using the changeset viewer.