Changeset 9544
- Timestamp:
- 5 Nov 2012, 18:38:47 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py
r9480 r9544 55 55 56 56 create_names = [ 57 'firstname', ' lastname',57 'firstname', 'middlename', 'lastname', 58 58 'sex', 'date_of_birth', 59 59 'email', 'phone' -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicantcopier.py
r9398 r9544 94 94 self.assertEqual(student.email, 'xx@yy.zz') 95 95 self.assertEqual(student.firstname, 'John') 96 self.assertEqual(student.middlename, 'Anthony') 96 97 self.assertEqual(student.lastname, 'Tester') 97 98 # student_id set in application record? … … 122 123 self.browser.getControl(name="searchterm").value = 'dep1' 123 124 self.browser.getControl("Search").click() 124 self.assertMatches('...John Tester...', self.browser.contents)125 self.assertMatches('...John Anthony Tester...', self.browser.contents) 125 126 # Has the student studycourse the correct attributes? 126 127 self.assertEqual(student['studycourse'].certificate.code, 'CERT1') -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r9531 r9544 167 167 # Fill the edit form with suitable values 168 168 self.browser.getControl(name="form.firstname").value = 'John' 169 self.browser.getControl(name="form.middlename").value = 'Anthony' 169 170 self.browser.getControl(name="form.lastname").value = 'Tester' 170 171 self.browser.getControl(name="form.course1").value = ['CERT1'] … … 236 237 self.browser.getControl(name="searchterm").value = 'John' 237 238 self.browser.getControl("Search").click() 238 self.assertTrue('John Tester' in self.browser.contents)239 self.assertTrue('John Anthony Tester' in self.browser.contents) 239 240 self.browser.getControl(name="searchtype").value = ['fullname'] 240 241 self.browser.getControl(name="searchterm").value = 'Tester' 241 242 self.browser.getControl("Search").click() 242 self.assertTrue('John Tester' in self.browser.contents)243 self.assertTrue('John Anthony Tester' in self.browser.contents) 243 244 self.browser.open(self.search_path) 244 245 # ... and via his reg_number ... … … 246 247 self.browser.getControl(name="searchterm").value = '2345' 247 248 self.browser.getControl("Search").click() 248 self.assertFalse('John Tester' in self.browser.contents)249 self.assertFalse('John Anthony Tester' in self.browser.contents) 249 250 self.browser.getControl(name="searchtype").value = ['reg_number'] 250 251 self.browser.getControl(name="searchterm").value = '1234' 251 252 self.browser.getControl("Search").click() 252 self.assertTrue('John Tester' in self.browser.contents)253 self.assertTrue('John Anthony Tester' in self.browser.contents) 253 254 # ... and not via his application_number ... 254 255 self.browser.getControl(name="searchtype").value = ['applicant_id'] … … 256 257 name="searchterm").value = self.applicant.application_number 257 258 self.browser.getControl("Search").click() 258 self.assertFalse('John Tester' in self.browser.contents)259 self.assertFalse('John Anthony Tester' in self.browser.contents) 259 260 # ... but ia his applicant_id ... 260 261 self.browser.getControl(name="searchtype").value = ['applicant_id'] … … 262 263 name="searchterm").value = self.applicant.applicant_id 263 264 self.browser.getControl("Search").click() 264 self.assertTrue('John Tester' in self.browser.contents)265 self.assertTrue('John Anthony Tester' in self.browser.contents) 265 266 # ... and via his email 266 267 self.browser.getControl(name="searchtype").value = ['email'] 267 268 self.browser.getControl(name="searchterm").value = 'xx@yy.zz' 268 269 self.browser.getControl("Search").click() 269 self.assertTrue('John Tester' in self.browser.contents)270 self.assertTrue('John Anthony Tester' in self.browser.contents) 270 271 return 271 272 … … 759 760 # Applicant is payee of the payment ticket. 760 761 self.assertEqual( 761 IPaymentWebservice(payment).display_fullname, 'John Tester')762 IPaymentWebservice(payment).display_fullname, 'John Anthony Tester') 762 763 self.assertEqual( 763 764 IPaymentWebservice(payment).id, self.applicant.applicant_id)
Note: See TracChangeset for help on using the changeset viewer.