Changeset 8008 for main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
- Timestamp:
- 30 Mar 2012, 10:23:32 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py
r7933 r8008 151 151 self.assertEqual(container.entry_level, 100) 152 152 self.assertEqual(container.year, 2012) 153 self.assertEqual(154 container.provider[0],155 u'waeup.kofa.applicants.ApplicantsContainer')156 153 self.assertEqual(container.application_category, 'basic') 157 154 self.assertEqual( -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r7997 r8008 248 248 self.browser.getControl(name="form.year").value = ['2010'] 249 249 self.browser.getControl(name="form.entry_level").value = ['100'] 250 self.browser.getControl(name="form.provider").value = [251 'waeup.kofa.applicants.ApplicantsContainer']252 250 self.browser.getControl( 253 251 name="form.application_category").value = ['basic'] … … 264 262 self.browser.getControl(name="form.year").value = ['2010'] 265 263 self.browser.getControl(name="form.entry_level").value = ['100'] 266 self.browser.getControl(name="form.provider").value = [267 'waeup.kofa.applicants.ApplicantsContainer']268 264 self.browser.getControl( 269 265 name="form.application_category").value = ['basic'] … … 280 276 self.browser.getControl(name="form.year").value = ['2010'] 281 277 self.browser.getControl(name="form.entry_level").value = ['100'] 282 self.browser.getControl(name="form.provider").value = [283 'waeup.kofa.applicants.ApplicantsContainer']284 278 #self.browser.getControl(name="form.ac_prefix").value = ['APP'] 285 279 self.browser.getControl( -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_export.py
r7984 r8008 12 12 ApplicantsContainerExporter, ApplicantsExporter) 13 13 from waeup.kofa.applicants.interfaces import ( 14 IApplicantsContainerProvider,AppCatSource, ApplicationTypeSource)14 AppCatSource, ApplicationTypeSource) 15 15 from waeup.kofa.applicants.tests.test_batching import ( 16 16 ApplicantImportExportSetup) … … 53 53 container.year = 2012 54 54 container.entry_level = 100 55 provider = [56 x for x in getUtilitiesFor(IApplicantsContainerProvider)57 if x[0] == 'waeup.kofa.applicants.ApplicantsContainer'][0]58 container.provider = provider59 55 container.application_category = list(AppCatSource()(container))[0] 60 56 container.description = u'Some Description\nwith linebreak\n' … … 73 69 self.assertEqual( 74 70 result, 75 'code,title,prefix,entry_level,year, provider,application_category,'71 'code,title,prefix,entry_level,year,application_category,' 76 72 'description,startdate,enddate,strict_deadline\r\n' 77 73 78 'dp2012,General Studies 2012/13,app,100,2012,' 79 'waeup.kofa.applicants.ApplicantsContainer,basic,' 74 'dp2012,General Studies 2012/13,app,100,2012,basic,' 80 75 '"Some Description\nwith linebreak\n<<de>>man spriht deutsh",' 81 76 '2012-01-01,2012-01-31,1\r\n'
Note: See TracChangeset for help on using the changeset viewer.