- Timestamp:
- 8 Jul 2020, 08:28:52 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/applicants/tests/test_browser.py
r16078 r16151 27 27 from zope.securitypolicy.interfaces import IPrincipalRoleManager 28 28 from zope.component import createObject, getUtility 29 from waeup.kofa.configuration import SessionConfiguration30 29 from waeup.kofa.interfaces import IUserAccount 31 30 from waeup.kofa.browser.tests.test_pdf import samples_dir … … 296 295 297 296 def test_transcript_payment(self): 298 configuration = SessionConfiguration()297 configuration = CustomSessionConfiguration() 299 298 configuration.academic_session = session_1 300 299 self.app['configuration'].addSessionConfiguration(configuration) … … 302 301 applicantscontainer = ApplicantsContainer() 303 302 applicantscontainer.year = session_1 304 applicantscontainer.application_fee = 200.0303 applicantscontainer.application_fee = 1.0 # Must be set but is not used. 305 304 applicantscontainer.code = u'trans1234' 306 applicantscontainer.prefix = 'trans '305 applicantscontainer.prefix = 'transfull' 307 306 applicantscontainer.title = u'This is a trans container' 308 307 applicantscontainer.application_category = 'no' … … 332 331 self.browser.getControl(name="form.date_of_birth").value = '09/09/1988' 333 332 self.browser.getControl(name="form.email").value = 'xx@yy.zz' 334 self.browser.getControl(name="form.nationality").value = ['NG']335 333 self.browser.getControl(name="form.firstname").value = 'Angela' 336 334 self.browser.getControl(name="form.lastname").value = 'Merkel' 337 335 self.browser.getControl(name="form.sex").value = ['f'] 338 self.browser.getControl(name="form.no_copies").value = [' 3']336 self.browser.getControl(name="form.no_copies").value = ['2'] 339 337 self.browser.getControl(name="form.course_studied").value = ['CERT1'] 340 338 self.browser.getControl(name="form.matric_number").value = '234' 341 self.browser.getControl(name="form.place_of_birth").value = 'Bochum'342 339 self.browser.getControl(name="form.dispatch_address").value = 'Kuensche' 343 self.browser.getControl(name="form.perm_address").value = 'Kuensche'344 340 self.browser.getControl(name="form.entry_mode").value = ['ug_ft'] 345 341 self.browser.getControl(name="form.entry_session").value = ['2014'] … … 347 343 self.browser.getControl(name="form.phone.country").value = ['+234'] 348 344 self.browser.getControl(name="form.phone.ext").value = '5678' 345 self.browser.getControl(name="form.charge").value = ['nigeria'] 349 346 self.browser.getControl("Save").click() 350 347 self.browser.getControl("Add online payment ticket").click() 351 348 self.assertTrue('Payment ticket created' in self.browser.contents) 352 self.assertTrue('<span> 200.0</span>' in self.browser.contents)353 self.assertEqual(applicant.values()[0].amount_auth, 200.0)349 self.assertTrue('<span>40000.0</span>' in self.browser.contents) 350 self.assertEqual(applicant.values()[0].amount_auth, 40000.0) 354 351 return
Note: See TracChangeset for help on using the changeset viewer.