Ignore:
Timestamp:
10 Dec 2011, 06:38:34 (13 years ago)
Author:
Henrik Bettermann
Message:

Catch InvalidTransitionError? and flash error message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py

    r7270 r7322  
    619619        # Callback can't be applied twice
    620620        self.browser.open(payment_url + '/callback')
    621         self.assertMatches('...This ticket has already been paid...',
    622                           self.browser.contents)
     621        self.assertMatches(
     622            "...Transition 'pay' requires 'started' as source state...",
     623            self.browser.contents)
    623624        # The payment receipt can be downloaded now
    624625        self.browser.open(payment_url)
Note: See TracChangeset for help on using the changeset viewer.