Changeset 6779 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 15 Sep 2011, 12:05:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r6775 r6779 173 173 self.assertTrue('Student record created' in self.browser.contents) 174 174 175 # Registration numbers must be unique 176 #self.browser.getLink("Manage").click() 177 #self.browser.getControl(name="form.reg_number").value = '123' 178 #self.browser.getControl("Save").click() 179 #self.assertMatches('...value already exists in catalog...', 180 # self.browser.contents) 175 # Registration and matric numbers must be unique 176 self.browser.getLink("Manage").click() 177 self.browser.getControl(name="form.reg_number").value = '123' 178 self.browser.getControl("Save").click() 179 self.assertMatches('...Registration number exists...', 180 self.browser.contents) 181 self.browser.getControl(name="form.reg_number").value = '789' 182 self.browser.getControl(name="form.matric_number").value = '234' 183 self.browser.getControl("Save").click() 184 self.assertMatches('...Matriculation number exists...', 185 self.browser.contents) 181 186 182 187 self.browser.open(self.container_path) … … 233 238 self.browser.getControl(name="transition").value = ['admit'] 234 239 self.browser.getControl(name="form.name").value = 'John Tester' 235 self.browser.getControl(name="form.reg_number").value = ' 123'240 self.browser.getControl(name="form.reg_number").value = '345' 236 241 self.browser.getControl(name="password").value = 'secret' 237 242 self.browser.getControl(name="control_password").value = 'secret'
Note: See TracChangeset for help on using the changeset viewer.