Ignore:
Timestamp:
25 Jan 2011, 17:06:49 (14 years ago)
Author:
uli
Message:

Add REQUIRES_JAMBDATA attribute for applicant containers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_container.py

    r5676 r5682  
    2626from zope.interface.verify import verifyClass, verifyObject
    2727from waeup.sirp.applicants import interfaces
    28 from waeup.sirp.applicants.container import ApplicantsContainer
     28from waeup.sirp.applicants.container import (
     29    ApplicantsContainer, JAMBBasedApplicantsContainer,
     30    )
    2931
    3032class ApplicantsContainerTestCase(unittest.TestCase):
     
    4244        return
    4345
     46class JAMBBasedApplicantsContainerTestCase(unittest.TestCase):
     47
     48    def test_interfaces(self):
     49        # Make sure the correct interfaces are implemented.
     50        self.assertTrue(
     51            verifyClass(
     52                interfaces.IApplicantsContainer, JAMBBasedApplicantsContainer)
     53            )
     54        self.assertTrue(
     55            verifyObject(
     56                interfaces.IApplicantsContainer, JAMBBasedApplicantsContainer())
     57            )
     58        return
     59
    4460def suite():
    4561    suite = unittest.TestSuite()
    46     suite.addTests(
    47         unittest.TestLoader().loadTestsFromTestCase(
    48             ApplicantsContainerTestCase,
    49             )
    50         )
     62    for test_case in [
     63        ApplicantsContainerTestCase,
     64        JAMBBasedApplicantsContainerTestCase,
     65        ]:
     66        suite.addTests(
     67            unittest.TestLoader().loadTestsFromTestCase(test_case))
    5168    return suite
    5269
Note: See TracChangeset for help on using the changeset viewer.