Changeset 10089 for main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
- Timestamp:
- 22 Apr 2013, 08:58:12 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicant.py
r9287 r10089 144 144 return 145 145 146 def test_name_chooser_applicant_nonpassport_w_container(self): 147 fake_container = grok.Container() 148 fake_container.__name__ = 'folder' 149 fake_container.code = 'folder' 150 appl = Applicant() 151 appl.applicant_id = u'folder_123456' 152 appl.__parent__ = fake_container 153 chooser = IFileStoreNameChooser(appl) 154 result = chooser.chooseName(attr='any.pdf') 155 self.assertEqual( 156 result, '__img-applicant__folder/%s_any.pdf' % appl.applicant_id) 157 return 158 146 159 def test_name_chooser_check_name(self): 147 160 # we can check file ids for applicants
Note: See TracChangeset for help on using the changeset viewer.