Changeset 16514 for main/kofacustom.nigeria
- Timestamp:
- 24 Jun 2021, 07:20:19 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/tests.py
r16491 r16514 281 281 self.assertEqual(self.student['payments'][value].provider_amt, 0.0) 282 282 self.assertEqual(self.student['payments'][value].gateway_amt, 300.0) 283 # Reference number has not yet been saved but can be seen in browser284 self.assertEqual(self.student['payments'][value].r_pay_reference, None)285 283 ref_number = '%s%s' % (MERCHANT_ID,value[1:]) 286 284 self.assertTrue(ref_number in self.browser.contents) 285 self.assertEqual(self.student['payments'][value].r_pay_reference, None) 287 286 self.browser.getControl("Requery").click() 288 287 self.assertTrue('pending' in self.browser.contents) 289 # Reference number has still not been saved because the element was empty290 self.assertEqual(self.student['payments'][value].r_pay_reference, None)288 # Reference number has been saved 289 self.assertEqual(self.student['payments'][value].r_pay_reference, ref_number) 291 290 # Students can download reference number slip 292 291 self.browser.getLink("Pay via Interswitch PAYDirect").click()
Note: See TracChangeset for help on using the changeset viewer.