Changeset 15828 for main/waeup.uniben/trunk/src/waeup/uniben/students
- Timestamp:
- 19 Nov 2019, 20:31:30 (5 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r15666 r15828 321 321 self.assertMatches('...Amount Authorized...', 322 322 self.browser.contents) 323 # Managers can open payment slip 324 self.browser.getLink("Download payment slip").click() 325 self.assertEqual(self.browser.headers['Status'], '200 Ok') 326 self.assertEqual(self.browser.headers['Content-Type'], 'application/pdf') 323 # Managers can open payment slip because we did not proceed to 324 # any payment gateway 325 self.assertFalse('Download payment slip' in self.browser.contents) 327 326 # Set ticket paid 328 327 ticket = self.student['payments'].items()[0][1] -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_export.py
r15666 r15828 103 103 result = open(self.outfile, 'rb').read() 104 104 self.assertMatches( 105 'ac,amount_auth,creation_date,gateway_amt, p_category,p_combi,p_current,'105 'ac,amount_auth,creation_date,gateway_amt,net_amt,p_category,p_combi,p_current,' 106 106 'p_id,p_item,p_level,p_session,p_state,payment_date,provider_amt,' 107 107 'r_amount_approved,r_card_num,r_code,r_company,r_desc,' 108 108 'r_pay_reference,rebate_amount,staff_rebate,thirdparty_amt,student_id,state,' 109 109 'current_session\r\n' 110 '666,12.12,%s-04-01 13:12:01#,, schoolfee,[],1,my-id,p-item,'110 '666,12.12,%s-04-01 13:12:01#,,,schoolfee,[],1,my-id,p-item,' 111 111 '100,%s,paid,%s-04-01 14:12:01#,,12.12,' 112 112 '789,r-code,interswatch,,,,,,A111111,created,2012\r\n'
Note: See TracChangeset for help on using the changeset viewer.