Changeset 9771 for main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
- Timestamp:
- 5 Dec 2012, 10:41:11 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r9544 r9771 802 802 self.assertEqual(payment.r_code, 'AP') 803 803 self.assertTrue(self.applicant.state == 'paid') 804 # Approval is logged in students.log ... 805 logfile = os.path.join( 806 self.app['datacenter'].storage, 'logs', 'applicants.log') 807 logcontent = open(logfile).read() 808 self.assertTrue( 809 'zope.mgr - applicants.browser.OnlinePaymentApprovePage - ' 810 '%s - payment approved' % self.applicant.applicant_id 811 in logcontent) 812 # ... and in payments.log 813 logfile = os.path.join( 814 self.app['datacenter'].storage, 'logs', 'payments.log') 815 logcontent = open(logfile).read() 816 self.assertTrue( 817 '"zope.mgr",%s,%s,application,200.0,AP,,,,,,,,,,,,\n' 818 % (self.applicant.applicant_id, payment.p_id) 819 in logcontent) 804 820 return 805 821
Note: See TracChangeset for help on using the changeset viewer.