Ignore:
Timestamp:
7 Nov 2011, 18:21:42 (13 years ago)
Author:
Henrik Bettermann
Message:

Students are only allowed to create bed allocation payment tickets if their current session matches the accommodation session.

File:
1 edited

Legend:

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

    r7022 r7024  
    863863        self.browser.getControl("Add online payment ticket").click()
    864864        self.browser.getControl(name="form.p_category").value = ['bed_allocation']
     865        # If student is not in accommodation session, payment cannot be processed
     866        self.app['configuration'].accommodation_session = 2011
     867        self.browser.getControl("Create ticket").click()
     868        self.assertMatches('...Your current session does not match...',
     869                           self.browser.contents)
     870        self.app['configuration'].accommodation_session = 2004
     871        self.browser.getControl("Add online payment ticket").click()
     872        self.browser.getControl(name="form.p_category").value = ['bed_allocation']
    865873        self.browser.getControl("Create ticket").click()
    866874        ctrl = self.browser.getControl(name='val_id')
Note: See TracChangeset for help on using the changeset viewer.