Changeset 11488


Ignore:
Timestamp:
13 Mar 2014, 06:49:36 (11 years ago)
Author:
Henrik Bettermann
Message:

Fix test.

File:
1 edited

Legend:

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

    r10275 r11488  
    2323import pytz
    2424import grok
     25from datetime import datetime
    2526from datetime import datetime, date, timedelta
    2627from zope.event import notify
     
    3637PH_LEN = 15911  # Length of placeholder file
    3738
     39session = datetime.now().year - 2
     40container_name = u'app%s' % session
     41
    3842
    3943class ApplicantUITests(ApplicantsFullSetup):
     
    157161            in logcontent)
    158162        # When an applicant is removed, also the pdf files are gone.
    159         del self.app['applicants']['app2011'][self.applicant.application_number]
     163        del self.app['applicants'][container_name][self.applicant.application_number]
    160164        fd = storage.getFile(file_id)
    161165        self.assertTrue(fd is None)
     
    248252            in logcontent)
    249253        # When an applicant is removed, also the pdf files are gone.
    250         del self.app['applicants']['app2011'][self.applicant.application_number]
     254        del self.app['applicants'][container_name][self.applicant.application_number]
    251255        fd = storage.getFile(file_id)
    252256        self.assertTrue(fd is None)
Note: See TracChangeset for help on using the changeset viewer.