- Timestamp:
- 26 Apr 2012, 13:58:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
r8282 r8286 141 141 # into two parts. 142 142 self.assertTrue( 143 'app _state,applicant_id,application_date,application_number,course1,course2,'143 'applicant_id,application_date,application_number,course1,course2,' 144 144 'course_admitted,date_of_birth,display_fullname,email,firstname,' 145 145 'history,lastname,locked,middlename,notice,password,phone,' 146 'reg_number,screening_score,screening_venue,sex, '146 'reg_number,screening_score,screening_venue,sex,state,' 147 147 'student_id\r\n' 148 ' initialized,dp2011_654321,,654321,,,,,Anna Tester,,Anna,'148 'dp2011_654321,,654321,,,,,Anna Tester,,Anna,' 149 149 in result) 150 150 self.assertTrue( 151 151 'Application initialized by system\'],Tester,' 152 '0,,,,,,,,, \r\n'152 '0,,,,,,,,,initialized,\r\n' 153 153 in result) 154 154 return … … 164 164 # history dict. We skip the date and split the comparison 165 165 # into two parts. 166 print result 167 self.assertTrue( 168 'app_state,applicant_id,application_date,application_number,course1,course2,' 166 self.assertTrue( 167 'applicant_id,application_date,application_number,course1,course2,' 169 168 'course_admitted,date_of_birth,display_fullname,email,firstname,' 170 169 'history,lastname,locked,middlename,notice,password,phone,' 171 'reg_number,screening_score,screening_venue,sex, '170 'reg_number,screening_score,screening_venue,sex,state,' 172 171 'student_id\r\n' 173 ' initialized,dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04,'172 'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04,' 174 173 'Anna M. Tester,anna@sample.com,Anna,' 175 174 in result) … … 177 176 'Application initialized by system\'],' 178 177 'Tester,0,M.,"Some notice\nin lines.",any password,' 179 '+234-123-12345,123456,98,Exam Room,f, \r\n'178 '+234-123-12345,123456,98,Exam Room,f,initialized,\r\n' 180 179 in result) 181 180 … … 190 189 result = open(self.outfile, 'rb').read() 191 190 self.assertTrue( 192 'app _state,applicant_id,application_date,application_number,course1,course2,'191 'applicant_id,application_date,application_number,course1,course2,' 193 192 'course_admitted,date_of_birth,display_fullname,email,firstname,' 194 193 'history,lastname,locked,middlename,notice,password,phone,' 195 'reg_number,screening_score,screening_venue,sex, '194 'reg_number,screening_score,screening_venue,sex,state,' 196 195 'student_id\r\n' 197 ' initialized,dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04,'196 'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04,' 198 197 'Anna M. Tester,anna@sample.com,Anna,' 199 198 in result) … … 201 200 'Application initialized by system\'],' 202 201 'Tester,0,M.,"Some notice\nin lines.",any password,' 203 '+234-123-12345,123456,98,Exam Room,f, \r\n'204 in result) 205 return 202 '+234-123-12345,123456,98,Exam Room,f,initialized,\r\n' 203 in result) 204 return
Note: See TracChangeset for help on using the changeset viewer.