Ignore:
Timestamp:
5 Nov 2012, 09:36:23 (12 years ago)
Author:
Henrik Bettermann
Message:

Describe PaymentWebservice? attributes in interface.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
3 edited

Legend:

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

    r7820 r9533  
    2020"""
    2121import unittest
     22from zope.interface import verify
    2223from waeup.kofa.applicants.payment import (
    23     ApplicantOnlinePayment, ApplicantOnlinePaymentFactory)
    24 from waeup.kofa.payments.interfaces import IOnlinePayment
     24    ApplicantOnlinePayment, ApplicantOnlinePaymentFactory, PaymentWebservice)
     25from waeup.kofa.payments.interfaces import IOnlinePayment, IPaymentWebservice
    2526
    2627class ApplicantOnlinePaymentFactoryTest(unittest.TestCase):
     
    3738        implemented_by = self.factory.getInterfaces()
    3839        assert implemented_by.isOrExtends(IOnlinePayment)
     40
     41    def test_webservice_interface(self):
     42        verify.verifyClass(IPaymentWebservice, PaymentWebservice)
  • main/waeup.kofa/trunk/src/waeup/kofa/payments/interfaces.py

    r9512 r9533  
    4545
    4646    """
    47     p_id = Attribute('Payment identifier.')
     47    p_id = Attribute('Payment identifier')
    4848
    4949    p_category = schema.Choice(
     
    132132
    133133    """
     134    display_fullname = Attribute('Name of  payee')
     135    id = Attribute('Id of payee')
     136    reg_or_matric_number = Attribute('Matric number or reg number of payee')
     137    faculty = Attribute('Faculty of payee')
     138    department = Attribute('Department of payee')
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_payment.py

    r7811 r9533  
    2020"""
    2121
     22from zope.interface import verify
    2223from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    2324from waeup.kofa.students.payments import (
    24     StudentOnlinePayment, StudentOnlinePaymentFactory)
    25 from waeup.kofa.payments.interfaces import IOnlinePayment
     25    StudentOnlinePayment, StudentOnlinePaymentFactory, PaymentWebservice)
     26from waeup.kofa.payments.interfaces import IOnlinePayment, IPaymentWebservice
    2627from waeup.kofa.students.interfaces import IStudentNavigation
    2728
     
    4748        assert implemented_by.isOrExtends(IOnlinePayment)
    4849        assert implemented_by.isOrExtends(IStudentNavigation)
     50
     51    def test_webservice_interface(self):
     52        verify.verifyClass(IPaymentWebservice, PaymentWebservice)
Note: See TracChangeset for help on using the changeset viewer.