Changeset 12975 for main/waeup.aaue/trunk/src/waeup/aaue/etranzact
- Timestamp:
- 21 May 2015, 17:05:42 (10 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
r12965 r12975 283 283 return 284 284 student = self.context.student 285 if s elf.context.student.state != CLEARED:286 return 287 if s elf.context.student.entry_session < 2013:285 if student.state != CLEARED: 286 return 287 if student.entry_session < 2013: 288 288 return 289 289 for ticket in student['payments'].values(): -
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/tests.py
r12429 r12975 61 61 self.browser.contents) 62 62 ctrl = self.browser.getControl(name='val_id') 63 value = ctrl.options[0] 64 self.student['payments'][value].approve() 63 value1 = ctrl.options[0] 65 64 66 65 self.browser.open(self.payments_path + '/addop') … … 70 69 self.browser.contents) 71 70 ctrl = self.browser.getControl(name='val_id') 72 value = ctrl.options[1]73 self.p_id = value 74 self.browser.getLink(value ).click()71 value2 = ctrl.options[1] 72 self.p_id = value2 73 self.browser.getLink(value2).click() 75 74 self.assertMatches('...Amount Authorized...', 76 75 self.browser.contents) … … 78 77 79 78 def test_enterpin(self): 79 self.student['studycourse'].entry_session = 2013 80 self.browser.open(self.payment_url) 80 81 self.browser.getLink("Query eTranzact History").click() 81 self.assertMatches( 82 '...Confirmation Number (PIN)...', 83 self.browser.contents) 82 self.assertTrue( 83 'Please pay acceptance fee firs' in self.browser.contents) 84 self.assertFalse( 85 'Confirmation Number (PIN)' in self.browser.contents) 86 self.student['payments'].values()[0].approve() 87 self.browser.getLink("Query eTranzact History").click() 88 self.assertFalse( 89 'Please pay acceptance fee firs' in self.browser.contents) 90 self.assertTrue( 91 'Confirmation Number (PIN)' in self.browser.contents) 84 92 85 93 def test_webservice(self):
Note: See TracChangeset for help on using the changeset viewer.