Changeset 6340 for main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Timestamp:
- 10 Jun 2011, 20:25:38 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 2 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'
Note: See TracChangeset for help on using the changeset viewer.