Changeset 12524 for main/waeup.ikoba


Ignore:
Timestamp:
30 Jan 2015, 11:19:26 (10 years ago)
Author:
Henrik Bettermann
Message:

Replace error message: 'Email address in use.'

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  
    210210        self.browser.getControl(name="form.reg_number").value = '123'
    211211        self.browser.getControl("Create customer record").click()
    212         self.assertTrue('Registration number does exist.'
     212        self.assertTrue('Registration number in use.'
    213213            in self.browser.contents)
    214214        self.browser.getControl(name="form.reg_number").value = '1234'
     
    220220        self.browser.getControl(name="form.reg_number").value = '123'
    221221        self.browser.getControl("Save").click()
    222         self.assertMatches('...Registration number does exist...',
     222        self.assertMatches('...Registration number in use...',
    223223                           self.browser.contents)
    224224
     
    784784        self.browser.getControl("Send login credentials").click()
    785785        # 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)
    787787        self.browser.getControl(name="form.email").value = 'newcustomer@xx.zz'
    788788        self.browser.getControl("Send login credentials").click()
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/vocabularies.py

    r12521 r12524  
    6262
    6363class RegNumNotInSource(ValidationError):
    64     """Registration number does exist.
     64    """Registration number in use.
    6565    """
    6666    # The docstring of ValidationErrors is used as error description
     
    6969
    7070class EmailNotInSource(ValidationError):
    71     """Email address does exist.
     71    """Email address in use.
    7272    """
    7373    pass
Note: See TracChangeset for help on using the changeset viewer.