Ignore:
Timestamp:
13 Jan 2015, 09:09:24 (10 years ago)
Author:
uli
Message:

Provide a basic PaymentItem? implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/payments/tests/test_payment.py

    r12402 r12461  
    2424from waeup.ikoba.payments.interfaces import (
    2525    IPayment, STATE_UNPAID, STATE_PAID, STATE_FAILED,
    26     IPaymentGatewayService,
     26    IPaymentGatewayService, IPaymentItem
    2727    )
    28 from waeup.ikoba.payments.payment import Payment, get_payment_providers
     28from waeup.ikoba.payments.payment import (
     29    Payment, get_payment_providers, PaymentItem,
     30    )
    2931
    3032
     
    110112        p1.mark_failed()
    111113        assert p1.state == STATE_FAILED
     114
     115
     116class PaymentItemTests(unittest.TestCase):
     117
     118    def test_iface(self):
     119        # PaymentItems fullfill any interface contracts
     120        obj = PaymentItem()
     121        verifyClass(IPaymentItem, PaymentItem)
     122        verifyObject(IPaymentItem, obj)
Note: See TracChangeset for help on using the changeset viewer.