Changeset 7886 for main/waeup.custom/trunk/src/waeup/custom/students
- Timestamp:
- 14 Mar 2012, 21:38:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/custom/students/tests.py
r7879 r7886 19 19 import shutil 20 20 import tempfile 21 from hurry.workflow.interfaces import IWorkflowState 21 22 from zope.component.hooks import setSite, clearSite 22 23 from waeup.kofa.app import University … … 108 109 self.assertMatches('...Amount could not be determined...', 109 110 self.browser.contents) 110 self.browser.open(self.manage_student_path) 111 self.browser.getControl(name="transition").value = ['admit'] 112 self.browser.getControl("Save").click() 113 self.browser.getControl(name="transition").value = ['start_clearance'] 114 self.browser.getControl("Save").click() 115 self.browser.getControl(name="transition").value = ['request_clearance'] 116 self.browser.getControl("Save").click() 117 self.browser.getControl(name="transition").value = ['clear'] 118 self.browser.getControl("Save").click() 111 IWorkflowState(self.student).setState('cleared') 119 112 self.browser.open(self.payments_student_path + '/addop') 120 113 self.browser.getControl("Create ticket").click() … … 126 119 self.assertMatches('...Amount Authorized...', 127 120 self.browser.contents) 128 #payment_url = self.browser.url 129 #self.browser.open(payment_url) 121 payment_url = self.browser.url 122 123 # Manager can access InterswitchForm 124 self.browser.getLink("CollegePAY", index=0).click() 125 self.assertMatches('...Total Amount Authorized:...', 126 self.browser.contents) 127 self.assertMatches( 128 '...<input type="hidden" name="amount" value="4000000" />...', 129 self.browser.contents) 130 131 # Manager receives valid callback 132 self.browser.open(payment_url) 130 133 self.browser.getLink("Request CollegePAY callback").click() 131 134 self.assertMatches('...Valid callback received...', 132 135 self.browser.contents) 136 133 137 self.browser.open(self.manage_student_path) 134 138 self.browser.getControl(
Note: See TracChangeset for help on using the changeset viewer.