- Timestamp:
- 5 Nov 2012, 18:38:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.