Changeset 10833 for main/waeup.fceokene


Ignore:
Timestamp:
10 Dec 2013, 07:48:10 (11 years ago)
Author:
Henrik Bettermann
Message:

Adjust tests to changes made in base package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py

    r10827 r10833  
    1717##
    1818import os
     19from datetime import datetime
    1920from zope.component import getUtility
    2021from zope.catalog.interfaces import ICatalog
     
    316317    def setUp(self):
    317318        super(InterswitchTestsApplicants, self).setUp()
     319        configuration = SessionConfiguration()
     320        configuration.academic_session = datetime.now().year - 2
     321        self.app['configuration'].addSessionConfiguration(configuration)
    318322        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    319323        self.browser.open(self.manage_path)
     
    324328        self.browser.getControl(name="transition").value = ['start']
    325329        self.browser.getControl("Save").click()
     330
     331    def test_interswitch_form(self):
    326332        self.browser.getControl("Add online").click()
    327333        self.assertMatches('...ticket created...',
    328                            self.browser.contents)
    329         self.assertMatches('...Amount Authorized...',
    330334                           self.browser.contents)
    331335        self.assertMatches(
     
    336340        ctrl = self.browser.getControl(name='val_id')
    337341        self.value = ctrl.options[0]
    338 
    339 
    340     def test_interswitch_form(self):
    341 
    342342        # Manager can access InterswitchForm
    343343        self.browser.open(self.payment_url)
Note: See TracChangeset for help on using the changeset viewer.