Ignore:
Timestamp:
22 Feb 2014, 14:11:26 (11 years ago)
Author:
uli
Message:

Fix test problem with year number.

File:
1 edited

Legend:

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

    r10382 r11237  
    11## $Id$
    22##
    3 ## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann
     3## Copyright (C) 2014 Uli Fouquet & Henrik Bettermann
    44## This program is free software; you can redistribute it and/or modify
    55## it under the terms of the GNU General Public License as published by
     
    2828from zope.component import createObject, getUtility
    2929from waeup.kofa.applicants.container import ApplicantsContainer
    30 from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup
     30from waeup.kofa.applicants.tests.test_browser import (
     31    ApplicantsFullSetup, container_name_1,
     32    )
    3133from waeup.kofa.interfaces import (
    3234    IExtFileStore, IFileStoreNameChooser)
     
    152154        logcontent = open(logfile).read()
    153155        self.assertTrue(
    154             'zope.mgr - waeup.imostate.applicants.browser.CustomApplicantManageFormPage'
     156            'zope.mgr - '
     157            'waeup.imostate.applicants.browser.CustomApplicantManageFormPage'
    155158            ' - %s - saved: extraform'
    156159            % (self.applicant.applicant_id)
    157160            in logcontent)
    158161        # When an applicant is removed, also the pdf files are gone.
    159         del self.app['applicants']['app2011'][self.applicant.application_number]
     162        del self.app['applicants'][container_name_1][
     163            self.applicant.application_number]
    160164        fd = storage.getFile(file_id)
    161165        self.assertTrue(fd is None)
Note: See TracChangeset for help on using the changeset viewer.