Changeset 13103 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 26 Jun 2015, 06:05:43 (10 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py
r13001 r13103 224 224 student.matric_number = u'234' 225 225 student.adm_code = u'my adm code' 226 student.clearance_locked = False227 226 student.clr_code = u'my clr code' 228 227 student.perm_address = u'Studentroad 21\nLagos 123456\n' -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r13091 r13103 1876 1876 self.browser.open(self.manage_clearance_path) 1877 1877 self.assertFalse('Employer' in self.browser.contents) 1878 self.student.clearance_locked = False1879 1878 self.browser.open(self.edit_clearance_path) 1880 1879 self.assertFalse('Employer' in self.browser.contents) … … 1888 1887 self.browser.open(self.manage_clearance_path) 1889 1888 self.assertTrue('Employer' in self.browser.contents) 1889 IWorkflowState(self.student).setState('clearance started') 1890 1890 self.browser.open(self.edit_clearance_path) 1891 1891 self.assertTrue('Employer' in self.browser.contents) … … 2619 2619 self.browser.getControl(name="form.password").value = 'spwd' 2620 2620 self.browser.getControl("Login").click() 2621 self.student.clearance_locked = False2622 2621 self.browser.open(self.edit_clearance_path) 2623 2622 self.browser.getControl(name="form.date_of_birth").value = '09/10/1961' … … 3416 3415 self.browser.headers['content-disposition']) 3417 3416 self.assertTrue( 3418 'adm_code,cl earance_locked,clr_code,date_of_birth,email,employer,'3417 'adm_code,clr_code,date_of_birth,email,employer,' 3419 3418 'firstname,lastname,matric_number,middlename,nationality,' 3420 3419 'officer_comment,perm_address,personal_updated,phone,reg_number,' … … 3422 3421 'password,state,history,certcode,is_postgrad,current_level,' 3423 3422 'current_session\r\n' 3424 ', 1,,1981-02-04#,aa@aa.ng,,Anna,Tester,234,,,,,,'3423 ',,1981-02-04#,aa@aa.ng,,Anna,Tester,234,,,,,,' 3425 3424 '1234#,123,m,K1000000,0,,,{SSHA}' in self.browser.contents) 3426 3425 … … 3516 3515 self.browser.headers['content-disposition']) 3517 3516 self.assertTrue( 3518 'adm_code,cl earance_locked,clr_code,date_of_birth,email,employer,'3517 'adm_code,clr_code,date_of_birth,email,employer,' 3519 3518 'firstname,lastname,matric_number,middlename,nationality,' 3520 3519 'officer_comment,perm_address,personal_updated,phone,reg_number,' … … 3522 3521 'password,state,history,certcode,is_postgrad,current_level,' 3523 3522 'current_session\r\n' 3524 ', 1,,1981-02-04#,aa@aa.ng,,Anna,Tester,234,,,,,,'3523 ',,1981-02-04#,aa@aa.ng,,Anna,Tester,234,,,,,,' 3525 3524 '1234#,123,m,K1000000,0,,,{SSHA}' in self.browser.contents) 3526 3525 self.assertEqual(len(self.app['datacenter'].running_exports), 1) -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_export.py
r13012 r13103 125 125 126 126 std_csv_entry = ( 127 'my adm code, 0,my clr code,1981-02-04#,anna@sample.com,,'127 'my adm code,my clr code,1981-02-04#,anna@sample.com,,' 128 128 'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n",,' 129 129 '+234-123-12345#,123,f,A111111,0,,,,created' … … 156 156 result = open(self.outfile, 'rb').read() 157 157 self.assertTrue( 158 'adm_code,cl earance_locked,clr_code,date_of_birth,email,'158 'adm_code,clr_code,date_of_birth,email,' 159 159 'employer,firstname,lastname,matric_number,middlename,' 160 160 'nationality,officer_comment,perm_address,personal_updated,' … … 162 162 'transcript_comment,password,state,history,certcode,is_postgrad,' 163 163 'current_level,current_session\r\n' 164 'my adm code, 0,my clr code,'164 'my adm code,my clr code,' 165 165 '1981-02-04#,anna@sample.com,,Anna,Tester,234,M.,NG,,' 166 166 '"Studentroad 21\nLagos 123456\n",,+234-123-12345#,123,f,' … … 178 178 result = open(self.outfile, 'rb').read() 179 179 self.assertTrue( 180 'adm_code,cl earance_locked,clr_code,date_of_birth,email,'180 'adm_code,clr_code,date_of_birth,email,' 181 181 'employer,firstname,lastname,matric_number,middlename,' 182 182 'nationality,officer_comment,perm_address,personal_updated,' … … 184 184 'transcript_comment,password,state,history,certcode,' 185 185 'is_postgrad,current_level,current_session\r\n' 186 'my adm code, 0,my clr code,1981-02-04#,anna@sample.com,,'186 'my adm code,my clr code,1981-02-04#,anna@sample.com,,' 187 187 'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n"' 188 188 ',,+234-123-12345#,123,f,A111111,0,,,,created' … … 198 198 result = open(self.outfile, 'rb').read() 199 199 self.assertTrue( 200 'adm_code,cl earance_locked,clr_code,date_of_birth,email,'200 'adm_code,clr_code,date_of_birth,email,' 201 201 'employer,firstname,lastname,matric_number,middlename,' 202 202 'nationality,officer_comment,perm_address,personal_updated,' … … 204 204 'transcript_comment,password,state,history,certcode,' 205 205 'is_postgrad,current_level,current_session\r\n' 206 'my adm code, 0,my clr code,1981-02-04#,anna@sample.com,,'206 'my adm code,my clr code,1981-02-04#,anna@sample.com,,' 207 207 'Anna,Tester,234,M.,NG,,"Studentroad 21\nLagos 123456\n"' 208 208 ',,+234-123-12345#,123,f,A111111,0,,,,created'
Note: See TracChangeset for help on using the changeset viewer.