- Timestamp:
- 2 Mar 2015, 14:07:26 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-fake-gw-provider/src/waeup/ikoba/payments/tests/test_payment.py
r12648 r12655 20 20 import re 21 21 import unittest 22 from zope.component import getUtilitiesFor, getSiteManager 22 from zope.component import getUtilitiesFor, getSiteManager, queryUtility 23 23 from zope.interface import implements 24 24 from zope.interface.verify import verifyClass, verifyObject 25 25 from waeup.ikoba.payments.interfaces import ( 26 26 IPayment, STATE_UNPAID, STATE_PAID, STATE_FAILED, 27 IPaymentGatewayService, IPaymentItem 27 IPaymentGatewayService, IPaymentItem, IPaymentGatewayServicesLister, 28 28 ) 29 29 from waeup.ikoba.payments.payment import ( 30 30 Payment, get_payment_providers, PaymentItem, 31 31 ) 32 from waeup.ikoba.testing import (FunctionalLayer, FunctionalTestCase) 32 33 33 34 … … 59 60 assert result.keys() == ['some_name', ] 60 61 assert result['some_name'] is fake_util 62 63 class FunctionalHelperTests(FunctionalTestCase): 64 65 layer = FunctionalLayer 66 67 def test_services_lister_is_registered(self): 68 # a lister of gateway services is registered on startup 69 util = queryUtility(IPaymentGatewayServicesLister) 70 assert util is not None 61 71 62 72
Note: See TracChangeset for help on using the changeset viewer.