Changeset 6088
- Timestamp:
- 14 May 2011, 14:26:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_interfaces.py
r6087 r6088 41 41 42 42 def test_vocabulary_len(self): 43 self.assertEqual(len(self.vocab), 5)43 self.assertEqual(len(self.vocab), 9) 44 44 return 45 45 46 46 def test_vocabulary_items(self): 47 self.assertTrue('p de' in self.vocab)47 self.assertTrue('pude' in self.vocab) 48 48 return 49 49 50 50 def test_term_attributes(self): 51 51 # Check that each vocab entry provided value, token, and title. 52 term = self.vocab.getTermByToken('p de')53 self.assertEqual(term.token, 'p de')54 self.assertEqual(term.value, 'p de')55 self.assertEqual(term.title, ' Direct Entry Screening Exam (PDE)')52 term = self.vocab.getTermByToken('pude') 53 self.assertEqual(term.token, 'pude') 54 self.assertEqual(term.value, 'pude') 55 self.assertEqual(term.title, 'Post UDE Screening') 56 56 return 57 57
Note: See TracChangeset for help on using the changeset viewer.