- Timestamp:
- 20 Jun 2015, 07:55:18 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
r12394 r13080 139 139 # into two parts. 140 140 self.assertTrue( 141 'applicant_id,application_date,application_number,course1,course2,' 142 'course_admitted,date_of_birth,display_fullname,email,firstname,' 143 'history,lastname,locked,middlename,notice,password,phone,' 144 'reg_number,sex,special_application,state,' 145 'student_id,suspended,container_code\r\n' 146 'dp2011_654321,,654321,,,,,Anna Tester,,Anna,' 147 in result) 148 self.assertTrue( 149 'Application initialized by system\'],Tester,' 150 '0,,,,,,,,initialized,,0,dp2011\r\n' 141 'applicant_id,course1,course2,course_admitted,date_of_birth,' 142 'email,firstname,lastname,locked,middlename,notice,phone,' 143 'reg_number,sex,special_application,student_id,suspended,' 144 'password,state,history,container_code,application_number,' 145 'display_fullname,application_date\r\n' 146 'dp2011_654321,,,,,,Anna,Tester,0' 147 in result) 148 self.assertTrue( 149 'Application initialized by system\'],dp2011,654321,Anna Tester' 151 150 in result) 152 151 return … … 163 162 # into two parts. 164 163 self.assertTrue( 165 'applicant_id,application_date,application_number,course1,course2,' 166 'course_admitted,date_of_birth,display_fullname,email,firstname,' 167 'history,lastname,locked,middlename,notice,password,phone,' 168 'reg_number,sex,special_application,state,' 169 'student_id,suspended,container_code\r\n' 170 'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04#,' 171 'Anna M. Tester,anna@sample.com,Anna,' 172 in result) 173 self.assertTrue( 174 'Application initialized by system\'],' 175 'Tester,0,M.,"Some notice\nin lines.",any password,' 176 '+234-123-12345#,123456,f,,initialized,,0,dp2011\r\n' 164 'applicant_id,course1,course2,course_admitted,date_of_birth,' 165 'email,firstname,lastname,locked,middlename,notice,phone,' 166 'reg_number,sex,special_application,student_id,suspended,' 167 'password,state,history,container_code,application_number,' 168 'display_fullname,application_date\r\n' 169 'dp2011_654321,CERT1,CERT1,CERT1,1981-02-04#,' 170 'anna@sample.com,Anna,Tester,' 171 in result) 172 self.assertTrue( 173 'Application initialized by system\'],dp2011,654321,' 174 'Anna M. Tester,\r\n' 177 175 in result) 178 176 … … 187 185 result = open(self.outfile, 'rb').read() 188 186 self.assertTrue( 189 'applicant_id,application_date,application_number,course1,course2,' 190 'course_admitted,date_of_birth,display_fullname,email,firstname,' 191 'history,lastname,locked,middlename,notice,password,phone,' 192 'reg_number,sex,special_application,state,' 193 'student_id,suspended,container_code\r\n' 194 'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04#,' 195 'Anna M. Tester,anna@sample.com,Anna,' 196 in result) 197 self.assertTrue( 198 'Application initialized by system\'],' 199 'Tester,0,M.,"Some notice\nin lines.",any password,' 200 '+234-123-12345#,123456,f,,initialized,,0,dp2011\r\n' 187 'applicant_id,course1,course2,course_admitted,date_of_birth,' 188 'email,firstname,lastname,locked,middlename,notice,phone,' 189 'reg_number,sex,special_application,student_id,suspended,' 190 'password,state,history,container_code,application_number,' 191 'display_fullname,application_date\r\n' 192 'dp2011_654321,CERT1,CERT1,CERT1,1981-02-04#,' 193 'anna@sample.com,Anna,Tester,' 194 in result) 195 self.assertTrue( 196 'Application initialized by system\'],dp2011,654321,' 197 'Anna M. Tester,\r\n' 201 198 in result) 202 199 return … … 209 206 result = open(self.outfile, 'rb').read() 210 207 self.assertTrue( 211 'applicant_id,application_date,application_number,course1,course2,' 212 'course_admitted,date_of_birth,display_fullname,email,firstname,' 213 'history,lastname,locked,middlename,notice,password,phone,' 214 'reg_number,sex,special_application,state,' 215 'student_id,suspended,container_code\r\n' 216 'dp2011_654321,,654321,CERT1,CERT1,CERT1,1981-02-04#,' 217 'Anna M. Tester,anna@sample.com,Anna,' 218 in result) 219 self.assertTrue( 220 'Application initialized by system\'],' 221 'Tester,0,M.,"Some notice\nin lines.",any password,' 222 '+234-123-12345#,123456,f,,initialized,,0,dp2011\r\n' 208 'applicant_id,course1,course2,course_admitted,date_of_birth,' 209 'email,firstname,lastname,locked,middlename,notice,phone,' 210 'reg_number,sex,special_application,student_id,suspended,' 211 'password,state,history,container_code,application_number,' 212 'display_fullname,application_date\r\n' 213 'dp2011_654321,CERT1,CERT1,CERT1,1981-02-04#,' 214 'anna@sample.com,Anna,Tester,' 215 in result) 216 self.assertTrue( 217 'Application initialized by system\'],dp2011,654321,' 218 'Anna M. Tester,\r\n' 223 219 in result) 224 220 # In empty container no applicants are exported … … 230 226 result = open(self.outfile, 'rb').read() 231 227 self.assertTrue( 232 'applicant_id, application_date,application_number,course1,'233 ' course2,course_admitted,date_of_birth,display_fullname,email,'234 ' firstname,history,lastname,locked,middlename,notice,password,'235 'p hone,reg_number,sex,special_application,state,student_id,'236 ' suspended,container_code\r\n'237 in result) 238 return 228 'applicant_id,course1,course2,course_admitted,date_of_birth,' 229 'email,firstname,lastname,locked,middlename,notice,phone,' 230 'reg_number,sex,special_application,student_id,suspended,' 231 'password,state,history,container_code,application_number,' 232 'display_fullname,application_date\r\n' 233 in result) 234 return
Note: See TracChangeset for help on using the changeset viewer.