Ignore:
Timestamp:
5 Apr 2019, 12:25:30 (6 years ago)
Author:
Henrik Bettermann
Message:

Restrict study modes ug_dsh and de_dsh from paying some following items.

File:
1 edited

Legend:

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

    r15379 r15388  
    2525from zope.securitypolicy.interfaces import IPrincipalRoleManager
    2626from datetime import datetime, timedelta, date
    27 from mechanize import LinkNotFoundError
     27from mechanize import LinkNotFoundError, ItemNotFoundError
    2828from hurry.workflow.interfaces import IWorkflowState
    2929from zope.event import notify
     
    231231        self.browser.addHeader('Authorization', 'Basic mgr:mgrpw')
    232232        self.browser.open(self.payments_path + '/addop')
    233         self.browser.getControl(name="form.p_category").value = ['schoolfee_1']
    234         self.browser.getControl("Create ticket").click()
    235         self.assertTrue(
    236             'Part-time students are not allowed' in self.browser.contents)
     233        self.assertFalse('schoolfee_1' in self.browser.contents)
     234        #self.browser.getControl(name="form.p_category").value = ['schoolfee_1']
     235        #self.browser.getControl("Create ticket").click()
     236        #self.assertTrue(
     237        #    'Part-time students are not allowed' in self.browser.contents)
    237238        self.student['studycourse'].certificate.study_mode = 'ug_ft'
    238239        self.browser.open(self.payments_path + '/addop')
     240        self.assertTrue('schoolfee_1' in self.browser.contents)
    239241        self.browser.getControl(name="form.p_category").value = ['schoolfee_1']
    240242        self.browser.getControl("Create ticket").click()
Note: See TracChangeset for help on using the changeset viewer.