Changeset 11554 for main/waeup.aaue/trunk/src
- Timestamp:
- 30 Mar 2014, 05:52:51 (11 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/etranzact
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py
r11291 r11554 105 105 self.output = ERROR_PART1 + 'Invalid PAYEE_ID' + ERROR_PART2 106 106 return 107 amount = results[0].amount_auth 108 payment_type = results[0].category 109 programme_type = results[0].p_item 110 academic_session = academic_sessions_vocab.getTerm( 111 results[0].p_session).title 112 status = results[0].p_state 113 if status == 'paid': 114 self.output = ERROR_PART1 + 'PAYEE_ID already used' + ERROR_PART2 115 return 107 116 if PAYMENT_TYPE == 'SCHOOL-FEE' \ 108 117 and not results[0].p_category.startswith('schoolfee'): … … 130 139 self.output = ERROR_PART1 + 'Unknown error' + ERROR_PART2 131 140 return 132 amount = results[0].amount_auth133 payment_type = results[0].category134 programme_type = results[0].p_item135 136 academic_session = academic_sessions_vocab.getTerm(137 results[0].p_session).title138 status = results[0].p_state139 141 self.output = ( 140 142 # Version 1 -
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py
r11291 r11554 131 131 % self.p_id) 132 132 self.assertEqual(self.browser.contents, ERROR_PART1 + 'Wrong PAYMENT_TYPE' + ERROR_PART2) 133 self.student['payments'][self.p_id].p_state = 'paid' 134 self.browser.open( 135 'http://localhost/app/feerequest?PAYEE_ID=%s&PAYMENT_TYPE=SCHOOL-FEE' 136 % self.p_id) 137 self.assertEqual(self.browser.contents, ERROR_PART1 + 'PAYEE_ID already used' + ERROR_PART2) 133 138 134 139
Note: See TracChangeset for help on using the changeset viewer.