Changeset 7124
- Timestamp:
- 17 Nov 2011, 11:01:25 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/interfaces.py
r7114 r7124 66 66 """ 67 67 68 def validPassword(value): 69 return len(value) > 3 70 68 71 password = schema.Password( 69 72 title = u'New password', 70 73 required = False, 74 constraint = validPassword, 71 75 ) 72 76 … … 74 78 title = u'Retype new password', 75 79 required = False, 80 constraint = validPassword, 76 81 ) 77 82 -
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_browser.py
r7123 r7124 650 650 # Change password 651 651 self.browser.getLink("Change password").click() 652 self.browser.getControl(name="form.password").value = 'pw' 653 self.browser.getControl( 654 name="form.password_repeat").value = 'pw' 655 self.browser.getControl("Save").click() 656 self.assertTrue('Constraint not satisfied' in self.browser.contents) 652 657 self.browser.getControl(name="form.password").value = 'new_password' 653 658 self.browser.getControl(
Note: See TracChangeset for help on using the changeset viewer.