Ignore:
Timestamp:
10 Dec 2013, 07:40:18 (11 years ago)
Author:
Henrik Bettermann
Message:

Reorganize setPaymentDetails. Add test.

File:
1 edited

Legend:

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

    r10831 r10832  
    758758            in logcontent)
    759759
    760     def test_pay_application_fee(self):
     760    def test_pay_portal_application_fee(self):
    761761        self.login()
    762762        self.browser.open(self.edit_path)
     
    869869        return
    870870
     871    def test_pay_container_application_fee(self):
     872        self.login()
     873        self.browser.open(self.edit_path)
     874        self.fill_correct_values()
     875        self.browser.getControl("Save").click()
     876        configuration = SessionConfiguration()
     877        configuration.academic_session = session_1
     878        self.applicantscontainer.application_fee = 120.0
     879        configuration.application_fee = 9999.9
     880        self.app['configuration'].addSessionConfiguration(configuration)
     881        self.browser.open(self.edit_path)
     882        self.browser.getControl("Add online payment ticket").click()
     883        self.assertMatches('...Payment ticket created...',
     884                           self.browser.contents)
     885        self.assertMatches('...Payment ticket created...',
     886                           self.browser.contents)
     887        self.assertFalse(
     888            '<span>9999.9</span>' in self.browser.contents)
     889        self.assertTrue(
     890            '<span>120.0</span>' in self.browser.contents)
     891        self.assertTrue(
     892            '<span>Application Fee</span>' in self.browser.contents)
     893        return
    871894
    872895    def test_pay_special_fee(self):
Note: See TracChangeset for help on using the changeset viewer.