Changeset 9961 for main/waeup.kofa/trunk/src
- Timestamp:
- 16 Feb 2013, 12:25:42 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py
r9960 r9961 420 420 num, num_warns, fin_file, fail_file = self.processor.doImport( 421 421 self.csv_file_extascii, STUDENT_HEADER_FIELDS_EXTASCII) 422 # Only the Mr. Müßig has been created. Mr. Kinderman's 423 # reg_number has been rejected. 424 self.assertEqual(num_warns,1) 425 content = open(fail_file).read() 426 self.assertEqual( 427 content, 428 'reg_number,firstname,student_id,email,phone,state,' 429 'date_of_birth,lastname,sex,matric_number,--ERRORS--' 430 '\r\n8\xc3\xa4\xc3\xb6\xc3\xbc,Thomas,X222222,aa@aa.ng,' 431 '1234,courses validated,1990-01-02,Kinderman,m,100007,' 432 'reg_number: Invalid text data\r\n' 433 ) 434 self.assertEqual(len(self.app['students']), 1) 422 self.assertEqual(num_warns,0) 423 self.assertEqual(len(self.app['students']), 2) 435 424 self.assertEqual(self.app['students']['X111111'].reg_number,'1') 436 425 shutil.rmtree(os.path.dirname(fin_file))
Note: See TracChangeset for help on using the changeset viewer.