- Timestamp:
- 22 Dec 2014, 16:23:13 (10 years ago)
- Location:
- main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/tests
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/tests/test_interfaces.py
r12295 r12296 17 17 ## 18 18 """ 19 Tests for payments .19 Tests for payments interfaces. 20 20 """ 21 from zope.interface.verify import verifyClass, verifyObject 22 from waeup.ikoba.payments.interfaces import ( 23 IPaymentsContainer, PaymentGatewayServicesSource, 24 ) 25 from waeup.ikoba.payments.container import PaymentsContainer 21 from waeup.ikoba.payments.interfaces import PaymentGatewayServicesSource 26 22 from waeup.ikoba.testing import (FunctionalLayer, FunctionalTestCase) 27 23 … … 30 26 31 27 layer = FunctionalLayer 32 33 def test_interfaces(self):34 # Make sure the correct interfaces are implemented.35 self.assertTrue(36 verifyClass(37 IPaymentsContainer, PaymentsContainer)38 )39 self.assertTrue(40 verifyObject(41 IPaymentsContainer, PaymentsContainer())42 )43 return44 45 def test_base(self):46 # We cannot call the fundamental methods of a base in that case47 container = PaymentsContainer()48 self.assertRaises(49 NotImplementedError, container.archive)50 self.assertRaises(51 NotImplementedError, container.clear)52 28 53 29 def test_payment_gateway_services_source(self):
Note: See TracChangeset for help on using the changeset viewer.