Changeset 13251 for main/waeup.uniben/trunk/src/waeup/uniben/interswitch
- Timestamp:
- 6 Sep 2015, 07:13:59 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r13183 r13251 208 208 209 209 # Create hostel application ticket 210 self.browser.open(self.payments_path + '/addop')211 self.browser.getControl(name="form.p_category").value = ['hostel_application']212 self.browser.getControl("Create ticket").click()213 ctrl = self.browser.getControl(name='val_id')214 value = ctrl.options[3]215 self.browser.getLink(value).click()216 self.assertTrue(217 '<span>1000.0</span>' in self.browser.contents)218 self.student['payments'][value].approve()210 #self.browser.open(self.payments_path + '/addop') 211 #self.browser.getControl(name="form.p_category").value = ['hostel_application'] 212 #self.browser.getControl("Create ticket").click() 213 #ctrl = self.browser.getControl(name='val_id') 214 #value = ctrl.options[3] 215 #self.browser.getLink(value).click() 216 #self.assertTrue( 217 # '<span>1000.0</span>' in self.browser.contents) 218 #self.student['payments'][value].approve() 219 219 220 220 # Create temp maint fee ticket 221 self.browser.open(self.payments_path + '/addop')222 self.browser.getControl(name="form.p_category").value = ['tempmaint_1']223 self.browser.getControl("Create ticket").click()224 ctrl = self.browser.getControl(name='val_id')225 value = ctrl.options[4]226 self.browser.getLink(value).click()227 self.assertTrue(228 '<span>8150.0</span>' in self.browser.contents)221 #self.browser.open(self.payments_path + '/addop') 222 #self.browser.getControl(name="form.p_category").value = ['tempmaint_1'] 223 #self.browser.getControl("Create ticket").click() 224 #ctrl = self.browser.getControl(name='val_id') 225 #value = ctrl.options[4] 226 #self.browser.getLink(value).click() 227 #self.assertTrue( 228 # '<span>8150.0</span>' in self.browser.contents) 229 229 # Manager can access InterswitchForm 230 self.browser.getLink("CollegePAY", index=0).click()231 self.assertEqual(self.student['payments'][value].provider_amt, 0.0)232 self.assertEqual(self.student['payments'][value].gateway_amt, 150.0)233 self.assertTrue('<input type="hidden" name="pay_item_id" value="5705" />'234 in self.browser.contents)235 self.assertMatches('...Total Amount Authorized:...',236 self.browser.contents)237 self.assertTrue(238 '<input type="hidden" name="amount" value="815000" />'239 in self.browser.contents)240 self.assertTrue(241 '<item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="800000" bank_id="129" acct_num="0014419432" />'242 in self.browser.contents)243 self.assertFalse(244 'item_name="BT Education"' in self.browser.contents)230 #self.browser.getLink("CollegePAY", index=0).click() 231 #self.assertEqual(self.student['payments'][value].provider_amt, 0.0) 232 #self.assertEqual(self.student['payments'][value].gateway_amt, 150.0) 233 #self.assertTrue('<input type="hidden" name="pay_item_id" value="5705" />' 234 # in self.browser.contents) 235 #self.assertMatches('...Total Amount Authorized:...', 236 # self.browser.contents) 237 #self.assertTrue( 238 # '<input type="hidden" name="amount" value="815000" />' 239 # in self.browser.contents) 240 #self.assertTrue( 241 # '<item_detail item_id="1" item_name="Hostel Maintenance Fee" item_amt="800000" bank_id="129" acct_num="0014419432" />' 242 # in self.browser.contents) 243 #self.assertFalse( 244 # 'item_name="BT Education"' in self.browser.contents) 245 245 246 246 # Create previous session fee ticket … … 284 284 self.browser.getControl("Create ticket").click() 285 285 ctrl = self.browser.getControl(name='val_id') 286 value = ctrl.options[ 5]286 value = ctrl.options[3] 287 287 self.browser.getLink(value).click() 288 288 self.assertTrue(
Note: See TracChangeset for help on using the changeset viewer.