Ignore:
Timestamp:
13 Jun 2012, 06:32:13 (12 years ago)
Author:
Henrik Bettermann
Message:

Let's better use an adapter for the webservice.

File:
1 edited

Legend:

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

    r8702 r8703  
    3535from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    3636from waeup.kofa.app import University
     37from waeup.kofa.payments.interfaces import IPaymentWebservice
    3738from waeup.kofa.configuration import SessionConfiguration
    3839from waeup.kofa.applicants.container import ApplicantsContainer
     
    730731        self.assertEqual(payment.p_category,'application')
    731732        self.assertEqual(payment.amount_auth,200.0)
    732         # Applicant is owner of the payment ticket.
    733         self.assertEqual(payment.getOwner(), self.applicant)
     733        # Applicant is payee of the payment ticket.
     734        self.assertEqual(IPaymentWebservice(payment).payee, 'John Tester')
    734735        # The pdf payment slip can't yet be opened
    735736        #self.browser.open(payment_url + '/payment_receipt.pdf')
Note: See TracChangeset for help on using the changeset viewer.