Changeset 9435 for main/waeup.uniben/trunk/src/waeup/uniben/interswitch
- Timestamp:
- 26 Oct 2012, 21:48:51 (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
r9407 r9435 118 118 payment.payment_date = datetime.utcnow() 119 119 msg = _('Successful callback received') 120 log = 'valid callback for payment %s: %s' % (payment.p_id, sr) 120 log = 'valid callback for %s payment %s: %s' % ( 121 payment.p_category, payment.p_id, sr) 121 122 return True, msg, log 122 123 -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r9389 r9435 54 54 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 55 55 self.browser.getControl("Create ticket").click() 56 56 self.assertMatches('...ticket created...', 57 self.browser.contents) 58 ctrl = self.browser.getControl(name='val_id') 59 value = ctrl.options[0] 60 self.browser.getLink(value).click() 61 self.assertMatches('...Amount Authorized...', 62 self.browser.contents) 63 self.assertMatches( 64 '...<span>40000.0</span>...', 65 self.browser.contents) 66 self.payment_url = self.browser.url 57 67 58 68 # def callback_url(self, payment_url, resp, apprAmt): … … 68 78 69 79 def test_interswitch_form(self): 70 71 # School fee ticket already created in setUp method72 self.assertMatches('...ticket created...',73 self.browser.contents)74 ctrl = self.browser.getControl(name='val_id')75 value = ctrl.options[0]76 self.browser.getLink(value).click()77 self.assertMatches('...Amount Authorized...',78 self.browser.contents)79 self.assertMatches(80 '...<span>40000.0</span>...',81 self.browser.contents)82 self.payment_url = self.browser.url83 80 # Manager can access InterswitchForm 84 81 self.browser.getLink("CollegePAY", index=0).click()
Note: See TracChangeset for help on using the changeset viewer.