Ignore:
Timestamp:
15 Jun 2012, 11:09:58 (12 years ago)
Author:
Henrik Bettermann
Message:

Re-use code.

Fix approveStudentPayment and adjust tests.

File:
1 edited

Legend:

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

    r8708 r8732  
    13121312        self.browser.open(payment_url)
    13131313        self.browser.getLink("Approve payment").click()
    1314         self.assertMatches('...Successful payment...',
     1314        self.assertMatches('...Payment approved...',
    13151315                          self.browser.contents)
    13161316
     
    13631363        self.browser.getLink(value).click()
    13641364        self.browser.open(self.browser.url + '/approve')
    1365         self.assertMatches('...Successful payment...',
     1365        self.assertMatches('...Payment approved...',
    13661366                          self.browser.contents)
    13671367        expected = '''...
     
    14021402        # In the base package they can 'use' a fake approval view
    14031403        self.browser.open(payment_url + '/fake_approve')
    1404         self.assertMatches('...Successful payment...',
     1404        self.assertMatches('...Payment approved...',
    14051405                          self.browser.contents)
    14061406        expected = '''...
     
    14841484        self.assertEqual(len(self.app['accesscodes']['SFE-0']),0)
    14851485        self.browser.open(self.browser.url + '/fake_approve')
    1486         self.assertMatches('...Successful payment...',
     1486        self.assertMatches('...Payment approved...',
    14871487                          self.browser.contents)
    14881488
     
    15481548        self.assertEqual(len(self.app['accesscodes']['SFE-0']),0)
    15491549        self.browser.open(self.browser.url + '/fake_approve')
    1550         self.assertMatches('...Successful payment...',
     1550        self.assertMatches('...Payment approved...',
    15511551                          self.browser.contents)
    15521552
Note: See TracChangeset for help on using the changeset viewer.