Changeset 12296 for main


Ignore:
Timestamp:
22 Dec 2014, 16:23:13 (10 years ago)
Author:
uli
Message:

Move container tests to own test module.

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  
    1717##
    1818"""
    19 Tests for payments.
     19Tests for payments interfaces.
    2020"""
    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
     21from waeup.ikoba.payments.interfaces import PaymentGatewayServicesSource
    2622from waeup.ikoba.testing import (FunctionalLayer, FunctionalTestCase)
    2723
     
    3026
    3127    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         return
    44 
    45     def test_base(self):
    46         # We cannot call the fundamental methods of a base in that case
    47         container = PaymentsContainer()
    48         self.assertRaises(
    49             NotImplementedError, container.archive)
    50         self.assertRaises(
    51             NotImplementedError, container.clear)
    5228
    5329    def test_payment_gateway_services_source(self):
Note: See TracChangeset for help on using the changeset viewer.