Ignore:
Timestamp:
13 Jun 2012, 06:32:13 (13 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/students/tests/test_browser.py

    r8702 r8703  
    3636from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    3737from waeup.kofa.app import University
     38from waeup.kofa.payments.interfaces import IPaymentWebservice
    3839from waeup.kofa.students.student import Student
    3940from waeup.kofa.students.studylevel import StudentStudyLevel
     
    14731474        self.assertEqual(self.student['payments'][value].p_level, 200)
    14741475
    1475         # Student is owner of the payment ticket.
    1476         self.assertEqual(self.student['payments'][value].getOwner(), self.student)
     1476        # Student is the payee of the payment ticket.
     1477        self.assertEqual(IPaymentWebservice(
     1478            self.student['payments'][value]).payee, 'Anna Tester')
    14771479
    14781480        # We simulate the approval
Note: See TracChangeset for help on using the changeset viewer.