Changeset 12524
- Timestamp:
- 30 Jan 2015, 11:19:26 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12523 r12524 210 210 self.browser.getControl(name="form.reg_number").value = '123' 211 211 self.browser.getControl("Create customer record").click() 212 self.assertTrue('Registration number does exist.'212 self.assertTrue('Registration number in use.' 213 213 in self.browser.contents) 214 214 self.browser.getControl(name="form.reg_number").value = '1234' … … 220 220 self.browser.getControl(name="form.reg_number").value = '123' 221 221 self.browser.getControl("Save").click() 222 self.assertMatches('...Registration number does exist...',222 self.assertMatches('...Registration number in use...', 223 223 self.browser.contents) 224 224 … … 784 784 self.browser.getControl("Send login credentials").click() 785 785 # Email address exists. 786 self.assertTrue('Email address does exist.' in self.browser.contents)786 self.assertTrue('Email address in use.' in self.browser.contents) 787 787 self.browser.getControl(name="form.email").value = 'newcustomer@xx.zz' 788 788 self.browser.getControl("Send login credentials").click() -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/vocabularies.py
r12521 r12524 62 62 63 63 class RegNumNotInSource(ValidationError): 64 """Registration number does exist.64 """Registration number in use. 65 65 """ 66 66 # The docstring of ValidationErrors is used as error description … … 69 69 70 70 class EmailNotInSource(ValidationError): 71 """Email address does exist.71 """Email address in use. 72 72 """ 73 73 pass
Note: See TracChangeset for help on using the changeset viewer.