Changeset 13385 for main/waeup.aaue/trunk/src/waeup/aaue/interswitch
- Timestamp:
- 3 Nov 2015, 21:09:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r13381 r13385 29 29 # If you enable this, please make sure the external services 30 30 # do exist really and are not bothered by being spammed by a test programme. 31 EXTERNAL_TESTS = False31 EXTERNAL_TESTS = True 32 32 33 33 def external_test(func): … … 336 336 self.assertEqual(results[0].p_state, 'failed') 337 337 338 # Let's replace the p_id with a valid p_id of the Uniben338 # Let's replace the p_id with a valid p_id of the AAUE 339 339 # live system. This is definitely not an appropriate 340 340 # solution for testing, but we have no choice since … … 342 342 # for testing. 343 343 payment = self.student['payments'][self.value] 344 payment.p_id = 'p 3547789850240'344 payment.p_id = 'p4465649308559' 345 345 self.browser.open(self.payment_url + '/request_webservice') 346 346 self.assertTrue('Callback amount does not match' in … … 369 369 'zope.mgr - ' 370 370 'waeup.aaue.interswitch.browser.CustomInterswitchPaymentRequestWebservicePageStudent - ' 371 ' X1000000 - successful schoolfee payment: p3547789850240\n'371 'E1000000 - successful schoolfee payment: p4465649308559\n' 372 372 in logcontent) 373 373 # ... and in payments.log … … 376 376 logcontent = open(logfile).read() 377 377 self.assertTrue( 378 '"zope.mgr", X1000000,p3547789850240,schoolfee,'379 ' 12000.0,00,0.0,150.0,0.0,,,\n'378 '"zope.mgr",E1000000,p4465649308559,schoolfee,' 379 '60250.0,00,1500.0,250.0,0.0,,,\n' 380 380 in logcontent)
Note: See TracChangeset for help on using the changeset viewer.