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

Add more attributes to webservice adapter.

File:
1 edited

Legend:

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

    r8703 r8708  
    159159        self.certificate.school_fee_1 = 40000.0
    160160        self.certificate.school_fee_2 = 20000.0
    161         self.app['faculties']['fac1'] = Faculty()
     161        self.app['faculties']['fac1'] = Faculty(code='fac1')
    162162        self.app['faculties']['fac1']['dep1'] = Department(code='dep1')
    163163        self.app['faculties']['fac1']['dep1'].certificates.addCertificate(
     
    14751475
    14761476        # Student is the payee of the payment ticket.
    1477         self.assertEqual(IPaymentWebservice(
    1478             self.student['payments'][value]).payee, 'Anna Tester')
     1477        webservice = IPaymentWebservice(self.student['payments'][value])
     1478        self.assertEqual(webservice.display_fullname, 'Anna Tester')
     1479        self.assertEqual(webservice.id, self.student_id)
     1480        self.assertEqual(webservice.faculty, 'fac1')
     1481        self.assertEqual(webservice.department, 'dep1')
    14791482
    14801483        # We simulate the approval
Note: See TracChangeset for help on using the changeset viewer.