Changeset 7509 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 25 Jan 2012, 12:52:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_batching.py
r7508 r7509 18 18 """Unit tests for applicants-related data importers. 19 19 """ 20 import datetime 20 21 import os 21 22 import shutil … … 256 257 else: 257 258 shutil.rmtree(os.path.dirname(fin_file)) 258 self.assertEqual(num_warns,1) 259 self.assertTrue( 260 'date_of_birth: Invalid datetime data' in fail_contents) 261 self.assertEqual(len(self.app['applicants']['dp2011'].keys()), 1) 259 for applicant in self.app['applicants']['dp2011'].values(): 260 if applicant.date_of_birth == datetime.date(1990, 1, 2): 261 self.fail( 262 'Wrong birthdate of imported applicant ' 263 '(1990-01-02, should be: 1990-02-01)') 262 264 return 263 265
Note: See TracChangeset for help on using the changeset viewer.