Ignore:
Timestamp:
9 Jun 2012, 15:43:07 (12 years ago)
Author:
Henrik Bettermann
Message:

Use strict_deadline attribute.

File:
1 edited

Legend:

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

    r8643 r8664  
    9090        applicantscontainer.application_category = 'basic'
    9191        applicantscontainer.mode = 'create'
     92        applicantscontainer.strict_deadline = True
    9293        delta = timedelta(days=10)
    9394        applicantscontainer.startdate = datetime.now(pytz.utc) - delta
     
    792793        self.assertTrue(
    793794            'Application period has expired' in self.browser.contents)
     795        # We can either postpone the enddate ...
    794796        self.applicantscontainer.enddate = datetime.now(
    795797            pytz.utc) + timedelta(days=10)
     798        self.browser.getControl(name="confirm_passport").value = True
     799        self.browser.getControl("Final Submit").click()
     800        self.assertTrue(
     801            '... submitted ...' in self.browser.contents)
     802        # ... or allow submission after deadline.
     803        IWorkflowState(self.applicant).setState('paid')
     804        self.applicant.locked = False
     805        self.applicantscontainer.strict_deadline = False
     806        self.browser.open(self.edit_path)
    796807        self.browser.getControl(name="confirm_passport").value = True
    797808        self.browser.getControl("Final Submit").click()
Note: See TracChangeset for help on using the changeset viewer.