- Timestamp:
- 19 Feb 2017, 07:38:38 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.sampleuni/trunk/src/kofacustom/sampleuni/students/tests/test_export.py
r13289 r14557 4 4 from waeup.kofa.interfaces import ICSVExporter 5 5 from waeup.kofa.schoolgrades import ResultEntry 6 from waeup.kofa.students.tests.test_batching import StudentImportExportSetup 6 from waeup.kofa.students.tests.test_batching import ( 7 StudentImportExportSetup, curr_year) 7 8 from kofacustom.sampleuni.utils.utils import CustomKofaUtils 8 9 from kofacustom.sampleuni.students.export import ( … … 46 47 result = open(self.outfile, 'rb').read() 47 48 self.assertMatches( 48 'adm_code,cl earance_locked,clr_code,date_of_birth,email,'49 'employer,firstname, lastname,matric_number,middlename,'49 'adm_code,clr_code,date_of_birth,email,' 50 'employer,firstname,flash_notice,lastname,matric_number,middlename,' 50 51 'nationality,officer_comment,perm_address,personal_updated,' 51 52 'phone,reg_number,sex,student_id,suspended,suspended_comment,' 52 53 'password,state,history,certcode,is_postgrad,current_level,' 53 'current_session\r\nmy adm code, 0,my clr code,1981-02-04#,'54 'anna@sample.com,,Anna, Tester,234,M.,NG,,'54 'current_session\r\nmy adm code,my clr code,1981-02-04#,' 55 'anna@sample.com,,Anna,,Tester,234,M.,NG,,' 55 56 '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,' 56 57 'f,A111111,0,,,created,' … … 90 91 'p_item,p_level,p_session,p_state,payment_date,r_amount_approved,' 91 92 'r_code,r_desc,student_id,state,current_session\r\n666,' 92 '12.12, 2012-04-01 13:12:01#,schoolfee,1,my-id,p-item,'93 '100, 2012,paid,2012-04-01 14:12:01#,12.12,r-code,,'94 'A111111,created,2012\r\n' ,95 result93 '12.12,%s-04-01 13:12:01#,schoolfee,1,my-id,p-item,' 94 '100,%s,paid,%s-04-01 14:12:01#,12.12,r-code,,' 95 'A111111,created,2012\r\n' 96 % (curr_year-6, curr_year-6, curr_year-6), result 96 97 ) 97 98 return
Note: See TracChangeset for help on using the changeset viewer.