Ignore:
Timestamp:
5 Dec 2012, 08:33:04 (12 years ago)
Author:
Henrik Bettermann
Message:

Add log message to payments.log after student payment approval.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r9760 r9770  
    832832        self.assertMatches('...Payment approved...',
    833833                          self.browser.contents)
    834         # Approval is logged
     834        # Approval is logged in students.log ...
    835835        logfile = os.path.join(
    836836            self.app['datacenter'].storage, 'logs', 'students.log')
     
    839839            'zope.mgr - students.browser.OnlinePaymentApprovePage '
    840840            '- K1000000 - schoolfee payment approved'
     841            in logcontent)
     842        # ... and in payments.log
     843        logfile = os.path.join(
     844            self.app['datacenter'].storage, 'logs', 'payments.log')
     845        logcontent = open(logfile).read()
     846        self.assertTrue(
     847            '"zope.mgr",K1000000,%s,schoolfee,40000.0,AP,,,,,,,,,,,,\n' % value
    841848            in logcontent)
    842849
Note: See TracChangeset for help on using the changeset viewer.