- Timestamp:
- 26 Oct 2012, 21:49:15 (12 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py
r9408 r9436 120 120 payment.payment_date = datetime.utcnow() 121 121 msg = _('Successful callback received') 122 log = 'valid callback for payment %s: %s' % (payment.p_id, sr) 122 log = 'valid callback for %s payment %s: %s' % ( 123 payment.p_category, payment.p_id, sr) 123 124 return True, msg, log 124 125 -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r9392 r9436 79 79 self.browser.open(self.payments_path + '/addop') 80 80 self.browser.getControl("Create ticket").click() 81 self.assertMatches('...ticket created...', 82 self.browser.contents) 83 ctrl = self.browser.getControl(name='val_id') 84 value = ctrl.options[0] 85 self.browser.getLink(value).click() 86 self.assertMatches('...Amount Authorized...', 87 self.browser.contents) 88 self.assertMatches( 89 '...<span>37100.0</span>...', 90 self.browser.contents) 91 self.payment_url = self.browser.url 81 92 82 93 … … 93 104 94 105 def test_interswitch_form(self): 95 96 # In the setup method we created the ticket97 self.assertMatches('...ticket created...',98 self.browser.contents)99 ctrl = self.browser.getControl(name='val_id')100 value = ctrl.options[0]101 self.browser.getLink(value).click()102 self.assertMatches('...Amount Authorized...',103 self.browser.contents)104 self.assertMatches(105 '...<span>37100.0</span>...',106 self.browser.contents)107 self.payment_url = self.browser.url108 109 106 # Manager can access InterswitchForm 110 107 self.browser.getLink("CollegePAY", index=0).click()
Note: See TracChangeset for help on using the changeset viewer.