Changeset 5682 for main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests
- Timestamp:
- 25 Jan 2011, 17:06:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_container.py
r5676 r5682 26 26 from zope.interface.verify import verifyClass, verifyObject 27 27 from waeup.sirp.applicants import interfaces 28 from waeup.sirp.applicants.container import ApplicantsContainer 28 from waeup.sirp.applicants.container import ( 29 ApplicantsContainer, JAMBBasedApplicantsContainer, 30 ) 29 31 30 32 class ApplicantsContainerTestCase(unittest.TestCase): … … 42 44 return 43 45 46 class 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 44 60 def suite(): 45 61 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)) 51 68 return suite 52 69
Note: See TracChangeset for help on using the changeset viewer.