Changeset 7683 for main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests
- Timestamp:
- 23 Feb 2012, 07:43:06 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_interfaces.py
r7193 r7683 22 22 from zc.sourcefactory.browser.source import FactoredTerms 23 23 from zope.publisher.browser import TestRequest 24 from waeup.sirp.applicants. vocabularies import application_types_vocab24 from waeup.sirp.applicants.interfaces import ApplicationTypeSource 25 25 from waeup.sirp.students.vocabularies import GenderSource 26 27 class ApplicationCategoriesTestCase(unittest.TestCase):28 29 def setUp(self):30 self.vocab = application_types_vocab31 return32 33 def test_vocabulary_len(self):34 self.assertEqual(len(self.vocab), 10)35 return36 37 def test_vocabulary_items(self):38 self.assertTrue('pude' in self.vocab)39 return40 41 def test_term_attributes(self):42 # Check that each vocab entry provided value, token, and title.43 term = self.vocab.getTermByToken('pude')44 self.assertEqual(term.token, 'pude')45 self.assertEqual(term.value, 'pude')46 self.assertEqual(term.title, 'Post UDE Screening')47 return48 26 49 27 class InterfacesTest(unittest.TestCase): … … 82 60 suite = unittest.TestSuite() 83 61 for testcase in [ 84 ApplicationCategoriesTestCase,85 62 InterfacesTest, 86 63 ]:
Note: See TracChangeset for help on using the changeset viewer.