Ignore:
Timestamp:
26 May 2012, 05:42:39 (13 years ago)
Author:
Henrik Bettermann
Message:

Determine application fee and set payment attributes in ApplicantsUtility?.setPaymentDetails.

File:
1 edited

Legend:

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

    r8420 r8524  
    8787        applicantscontainer.prefix = 'app'
    8888        applicantscontainer.year = 2009
     89        applicantscontainer.title = u'This is the app2009 container'
    8990        applicantscontainer.application_category = 'basic'
    9091        applicantscontainer.mode = 'create'
     
    692693                           self.browser.contents)
    693694        payment_url = self.browser.url
     695        payment_id = self.applicant.keys()[0]
     696        payment = self.applicant[payment_id]
     697        self.assertEqual(payment.p_item,'This is the app2009 container')
     698        self.assertEqual(payment.p_session,2009)
     699        self.assertEqual(payment.p_category,'application')
     700        self.assertEqual(payment.amount_auth,200.0)
    694701        # The pdf payment slip can't yet be opened
    695702        #self.browser.open(payment_url + '/payment_receipt.pdf')
     
    701708            Unauthorized, self.browser.open, payment_url + '/approve')
    702709        # We approve the payment by bypassing the view
    703         payment_id = self.applicant.keys()[0]
    704         payment = self.applicant[payment_id]
    705710        payment.approve()
    706711        # The payment slip can be downloaded now
Note: See TracChangeset for help on using the changeset viewer.