Changeset 13574 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 10 Jan 2016, 09:13:17 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r13492 r13574 196 196 configuration.booking_fee = 123.4 197 197 configuration.maint_fee = 987.0 198 configuration.transfer_fee = 456.0 198 199 configuration.late_registration_fee = 345.0 199 200 self.app['configuration'].addSessionConfiguration(configuration) … … 1062 1063 self.assertEqual(ac.cost, 4567.0) 1063 1064 return 1065 1066 def test_add_transfer_payment(self): 1067 self.browser.addHeader('Authorization', 'Basic mgr:mgrpw') 1068 self.browser.open(self.payments_path) 1069 self.browser.getLink("Add current session payment ticket").click() 1070 self.browser.getControl(name="form.p_category").value = ['transfer'] 1071 self.browser.getControl(name="new_programme").value = 'my new study course' 1072 self.browser.getControl("Create ticket").click() 1073 self.assertMatches('...ticket created...', 1074 self.browser.contents) 1075 ctrl = self.browser.getControl(name='val_id') 1076 value = ctrl.options[0] 1077 self.browser.getLink(value).click() 1078 self.assertMatches('...my new study course...', 1079 self.browser.contents) 1080 self.assertEqual(self.student['payments'][value].p_item, u'my new study course') 1064 1081 1065 1082 def test_manage_payments_bypass_ac_creation(self):
Note: See TracChangeset for help on using the changeset viewer.