Ignore:
Timestamp:
12 Jan 2013, 08:51:37 (12 years ago)
Author:
Henrik Bettermann
Message:

Balance must not be negative or zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r9868 r9874  
    23992399        self.browser.getControl(name="form.balance_session").value = ['2004']
    24002400        self.browser.getControl(name="form.balance_level").value = ['300']
     2401        self.browser.getControl(name="form.balance_amount").value = '-567.8'
     2402        self.browser.getControl("Create ticket").click()
     2403        self.assertMatches('...Amount must be greater than 0...',
     2404                           self.browser.contents)
     2405        self.browser.getControl(name="form.balance_amount").value = '0'
     2406        self.browser.getControl("Create ticket").click()
     2407        self.assertMatches('...Amount must be greater than 0...',
     2408                           self.browser.contents)
    24012409        self.browser.getControl(name="form.balance_amount").value = '567.8'
    24022410        self.browser.getControl("Create ticket").click()
Note: See TracChangeset for help on using the changeset viewer.