Changeset 6340 for main/waeup.sirp/trunk
- Timestamp:
- 10 Jun 2011, 20:25:38 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_interfaces.py
r6289 r6340 73 73 def test_GenderSource_term_male(self): 74 74 term = self.terms.getTerm('m') 75 assert term.title == ' male'75 assert term.title == 'Male' 76 76 assert term.token == 'm' 77 77 assert term.value == 'm' … … 79 79 def test_GenderSource_term_female(self): 80 80 term = self.terms.getTerm('f') 81 assert term.title == ' female'81 assert term.title == 'Female' 82 82 assert term.token == 'f' 83 83 assert term.value == 'f' -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/vocabularies.py
r6256 r6340 75 75 class GenderSource(BasicSourceFactory): 76 76 """A gender source delivers basically a mapping 77 ``{'m': ' male', 'f': 'female'}``77 ``{'m': 'Male', 'f': 'Female'}`` 78 78 79 79 Using a source, we make sure that the tokens (which are … … 89 89 def getTitle(self, value): 90 90 if value == 'm': 91 return ' male'91 return 'Male' 92 92 if value == 'f': 93 return ' female'93 return 'Female' -
main/waeup.sirp/trunk/src/waeup/sirp/tests/test_waeup.py
r5075 r6340 16 16 (re.compile('[\d]{10}'), '<10-DIGITS>'), 17 17 ]) 18 18 19 19 # Register all tests in the waeup_ng package 20 20 test_suite = grok.testing.register_all_tests(
Note: See TracChangeset for help on using the changeset viewer.