Changeset 9370
- Timestamp:
- 20 Oct 2012, 19:58:10 (12 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r9347 r9370 51 51 self.browser.open(self.payments_path + '/addop') 52 52 self.browser.getControl("Create ticket").click() 53 self.assertMatches('...ticket created...',54 self.browser.contents)55 ctrl = self.browser.getControl(name='val_id')56 value = ctrl.options[0]57 self.browser.getLink(value).click()58 self.assertMatches('...Amount Authorized...',59 self.browser.contents)60 self.assertMatches(61 '...<span>12495.0</span>...',62 self.browser.contents)63 self.payment_url = self.browser.url64 53 65 54 … … 76 65 77 66 def test_interswitch_form(self): 67 68 # In the setup method we created the ticket 69 self.assertMatches('...ticket created...', 70 self.browser.contents) 71 ctrl = self.browser.getControl(name='val_id') 72 value = ctrl.options[0] 73 self.browser.getLink(value).click() 74 self.assertMatches('...Amount Authorized...', 75 self.browser.contents) 76 self.assertMatches( 77 '...<span>12495.0</span>...', 78 self.browser.contents) 79 self.payment_url = self.browser.url 78 80 79 81 # Manager can access InterswitchForm -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r9366 r9370 204 204 p_session, p_level = self.getReturningData(student) 205 205 206 207 amount = 0.0 208 206 209 if amount in (0.0, None): 207 210 return _(u'Amount could not be determined.'), None
Note: See TracChangeset for help on using the changeset viewer.