Changeset 9727 for main/waeup.uniben/trunk/src/waeup/uniben/interswitch
- Timestamp:
- 27 Nov 2012, 10:05:02 (12 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py
r9713 r9727 268 268 xmldict['institution_bank_id'] = '7' 269 269 xmldict['institution_acct'] = '1003475516' 270 if self.context.p_category == 'gown':270 elif self.context.p_category == 'gown': 271 271 self.pay_item_id = '5704' 272 272 provider_amt = 0 273 273 xmldict['institution_bank_id'] = '7' 274 274 xmldict['institution_acct'] = '1016232382' 275 elif self.context.p_category.startswith('hostel_maintenance'): 276 self.pay_item_id = '5705' 277 provider_amt = 400 278 xmldict['institution_bank_id'] = '129' 279 xmldict['institution_acct'] = '0014414547' 275 280 276 281 xmldict['provider_amt'] = 100 * provider_amt -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r9713 r9727 189 189 'item_name="BT Education"' in self.browser.contents) 190 190 191 # Create temp maint fee ticket 192 self.browser.open(self.payments_path + '/addop') 193 self.browser.getControl(name="form.p_category").value = ['tempmaint_1'] 194 self.browser.getControl("Create ticket").click() 195 ctrl = self.browser.getControl(name='val_id') 196 value = ctrl.options[4] 197 self.browser.getLink(value).click() 198 self.assertMatches( 199 '...<span>8550.0</span>...', 200 self.browser.contents) 201 # Manager can access InterswitchForm 202 self.browser.getLink("CollegePAY", index=0).click() 203 self.assertMatches('...<input type="hidden" name="pay_item_id" value="5705" />...', 204 self.browser.contents) 205 self.assertMatches('...Total Amount Authorized:...', 206 self.browser.contents) 207 self.assertMatches( 208 '...<input type="hidden" name="amount" value="855000.0" />...', 209 self.browser.contents) 210 self.assertMatches( 211 '...<item_detail item_id="1" item_name="Hostel Maint. Fee" item_amt="800000" bank_id="129" acct_num="0014414547" />...', 212 self.browser.contents) 213 self.assertMatches( 214 '...item_name="BT Education" item_amt="40000" bank_id="117" acct_num="1010764827"...', 215 self.browser.contents) 216 217 191 218 # @external_test 192 219 # def test_callback(self):
Note: See TracChangeset for help on using the changeset viewer.