Ignore:
Timestamp:
8 Mar 2012, 19:00:51 (13 years ago)
Author:
uli
Message:

Rename all non-locales stuff from sirp to kofa.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/sample_container_data.csv

    r6281 r7811  
    11code,ac_prefix,application_category,provider,prefix,year
    2 CODE1,APP,basic,waeup.sirp.applicants.ApplicantsContainer,app,2013
    3 CODE2,DPP,cest,waeup.sirp.applicants.ApplicantsContainer,app,2013
     2CODE1,APP,basic,waeup.kofa.applicants.ApplicantsContainer,app,2013
     3CODE2,DPP,cest,waeup.kofa.applicants.ApplicantsContainer,app,2013
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicant.py

    r7321 r7811  
    2626from zope.interface import verify, implements
    2727from zope.location.interfaces import ILocation
    28 from waeup.sirp.image.interfaces import ISIRPImageFile
    29 from waeup.sirp.imagestorage import DefaultStorage
    30 from waeup.sirp.interfaces import IFileStoreHandler, IFileStoreNameChooser
    31 from waeup.sirp.applicants import (
     28from waeup.kofa.image.interfaces import IKOFAImageFile
     29from waeup.kofa.imagestorage import DefaultStorage
     30from waeup.kofa.interfaces import IFileStoreHandler, IFileStoreNameChooser
     31from waeup.kofa.applicants import (
    3232    Applicant, ApplicantFactory,
    3333    ApplicantImageStoreHandler, ApplicantImageNameChooser,
    3434    )
    35 from waeup.sirp.applicants.interfaces import IApplicant
    36 from waeup.sirp.testing import FunctionalTestCase, FunctionalLayer
     35from waeup.kofa.applicants.interfaces import IApplicant
     36from waeup.kofa.testing import FunctionalTestCase, FunctionalLayer
    3737
    3838class FakeImageLocation(object):
    3939    implements(ILocation)
    40     adapts(ISIRPImageFile)
     40    adapts(IKOFAImageFile)
    4141    def __init__(self, context):
    4242        pass
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicantcopier.py

    r7421 r7811  
    2222from hurry.workflow.interfaces import IWorkflowInfo
    2323from zope.component import getUtility
    24 from waeup.sirp.testing import FunctionalLayer
    25 from waeup.sirp.interfaces import IExtFileStore, IFileStoreNameChooser
    26 from waeup.sirp.applicants.tests.test_browser import ApplicantsFullSetup
     24from waeup.kofa.testing import FunctionalLayer
     25from waeup.kofa.interfaces import IExtFileStore, IFileStoreNameChooser
     26from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup
    2727
    2828class ApplicantCopierFunctionalTests(ApplicantsFullSetup):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_authentication.py

    r7364 r7811  
    2525from zope.securitypolicy.role import Role
    2626from zope.securitypolicy.interfaces import IRole, Allow
    27 from waeup.sirp.authentication import get_principal_role_manager
    28 from waeup.sirp.interfaces import IAuthPluginUtility, IUserAccount
    29 from waeup.sirp.applicants.authentication import (
     27from waeup.kofa.authentication import get_principal_role_manager
     28from waeup.kofa.interfaces import IAuthPluginUtility, IUserAccount
     29from waeup.kofa.applicants.authentication import (
    3030    ApplicantsAuthenticatorSetup, ApplicantAccount)
    31 from waeup.sirp.applicants.tests.test_browser import ApplicantsFullSetup
    32 from waeup.sirp.testing import FunctionalLayer
     31from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup
     32from waeup.kofa.testing import FunctionalLayer
    3333
    3434class ApplicantsAuthenticatorSetupTests(unittest.TestCase):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py

    r7509 r7811  
    2727from zope.interface.verify import verifyClass, verifyObject
    2828
    29 from waeup.sirp.app import University
    30 from waeup.sirp.applicants.batching import (
     29from waeup.kofa.app import University
     30from waeup.kofa.applicants.batching import (
    3131    ApplicantsContainerImporter, ApplicantImporter)
    32 from waeup.sirp.applicants.container import ApplicantsContainer
    33 from waeup.sirp.applicants.applicant import Applicant
    34 from waeup.sirp.university.faculty import Faculty
    35 from waeup.sirp.university.department import Department
    36 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
    37 from waeup.sirp.interfaces import IBatchProcessor
     32from waeup.kofa.applicants.container import ApplicantsContainer
     33from waeup.kofa.applicants.applicant import Applicant
     34from waeup.kofa.university.faculty import Faculty
     35from waeup.kofa.university.department import Department
     36from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
     37from waeup.kofa.interfaces import IBatchProcessor
    3838
    3939
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r7795 r7811  
    2929from zope.testbrowser.testing import Browser
    3030from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState
    31 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
    32 from waeup.sirp.app import University
    33 from waeup.sirp.configuration import SessionConfiguration
    34 from waeup.sirp.applicants.container import ApplicantsContainer
    35 from waeup.sirp.applicants.applicant import Applicant
    36 from waeup.sirp.interfaces import (
     31from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
     32from waeup.kofa.app import University
     33from waeup.kofa.configuration import SessionConfiguration
     34from waeup.kofa.applicants.container import ApplicantsContainer
     35from waeup.kofa.applicants.applicant import Applicant
     36from waeup.kofa.interfaces import (
    3737    IExtFileStore, IFileStoreNameChooser, IUserAccount)
    38 from waeup.sirp.university.faculty import Faculty
    39 from waeup.sirp.university.department import Department
     38from waeup.kofa.university.faculty import Faculty
     39from waeup.kofa.university.department import Department
    4040
    4141PH_LEN = 2059  # Length of placeholder file
     
    247247        self.browser.getControl(name="form.year").value = ['2010']
    248248        self.browser.getControl(name="form.provider").value = [
    249             'waeup.sirp.applicants.ApplicantsContainer']
     249            'waeup.kofa.applicants.ApplicantsContainer']
    250250        self.browser.getControl(
    251251            name="form.application_category").value = ['basic']
     
    262262        self.browser.getControl(name="form.year").value = ['2010']
    263263        self.browser.getControl(name="form.provider").value = [
    264             'waeup.sirp.applicants.ApplicantsContainer']
     264            'waeup.kofa.applicants.ApplicantsContainer']
    265265        self.browser.getControl(
    266266            name="form.application_category").value = ['basic']
     
    277277        self.browser.getControl(name="form.year").value = ['2010']
    278278        self.browser.getControl(name="form.provider").value = [
    279             'waeup.sirp.applicants.ApplicantsContainer']
     279            'waeup.kofa.applicants.ApplicantsContainer']
    280280        #self.browser.getControl(name="form.ac_prefix").value = ['APP']
    281281        self.browser.getControl(
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_catalog.py

    r7260 r7811  
    2828from zope.component.interfaces import ComponentLookupError
    2929from zope.testbrowser.testing import Browser
    30 from waeup.sirp.app import University
    31 from waeup.sirp.applicants.container import ApplicantsContainer
    32 from waeup.sirp.applicants.applicant import Applicant
    33 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
     30from waeup.kofa.app import University
     31from waeup.kofa.applicants.container import ApplicantsContainer
     32from waeup.kofa.applicants.applicant import Applicant
     33from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
    3434
    3535class CatalogTests(FunctionalTestCase):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_container.py

    r7193 r7811  
    2121import unittest
    2222from zope.interface.verify import verifyClass, verifyObject
    23 from waeup.sirp.applicants import interfaces
    24 from waeup.sirp.applicants.container import (
     23from waeup.kofa.applicants import interfaces
     24from waeup.kofa.applicants.container import (
    2525    ApplicantsContainer,
    2626    )
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_dynamicroles.py

    r7347 r7811  
    2424from zope.securitypolicy.tests.test_annotationprincipalrolemanager import (
    2525    Test as APRMTest, Manageable)
    26 from waeup.sirp.testing import FunctionalLayer
    27 from waeup.sirp.applicants.tests.test_browser import ApplicantsFullSetup
    28 from waeup.sirp.applicants import ApplicantPrincipalRoleManager
     26from waeup.kofa.testing import FunctionalLayer
     27from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup
     28from waeup.kofa.applicants import ApplicantPrincipalRoleManager
    2929
    3030class ApplicantPrincipalRoleManagerTests(APRMTest):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_interfaces.py

    r7683 r7811  
    2222from zc.sourcefactory.browser.source import FactoredTerms
    2323from zope.publisher.browser import TestRequest
    24 from waeup.sirp.applicants.interfaces import ApplicationTypeSource
    25 from waeup.sirp.students.vocabularies import GenderSource
     24from waeup.kofa.applicants.interfaces import ApplicationTypeSource
     25from waeup.kofa.students.vocabularies import GenderSource
    2626
    2727class InterfacesTest(unittest.TestCase):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_payment.py

    r7250 r7811  
    2020"""
    2121
    22 from waeup.sirp.testing import FunctionalLayer, FunctionalTestCase
    23 from waeup.sirp.applicants.payment import (
     22from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase
     23from waeup.kofa.applicants.payment import (
    2424    ApplicantOnlinePayment, ApplicantOnlinePaymentFactory)
    25 from waeup.sirp.payments.interfaces import IOnlinePayment
     25from waeup.kofa.payments.interfaces import IOnlinePayment
    2626
    2727class ApplicantOnlinePaymentFactoryTest(FunctionalTestCase):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_pdf.py

    r7416 r7811  
    2222from zope.component import getAdapter
    2323from zope.interface import verify
    24 from waeup.sirp.applicants.pdf import IPDF, PDFApplicationSlip
    25 from waeup.sirp.applicants.tests.test_browser import ApplicantsFullSetup
    26 from waeup.sirp.interfaces import IPDF
    27 from waeup.sirp.testing import FunctionalTestCase, FunctionalLayer
     24from waeup.kofa.applicants.pdf import IPDF, PDFApplicationSlip
     25from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup
     26from waeup.kofa.interfaces import IPDF
     27from waeup.kofa.testing import FunctionalTestCase, FunctionalLayer
    2828
    2929class PDFApplicationSlipTests(ApplicantsFullSetup):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_root.py

    r7375 r7811  
    2626from zope.component.hooks import setSite, clearSite
    2727from zope.interface.verify import verifyClass, verifyObject
    28 from waeup.sirp.app import University
    29 from waeup.sirp.applicants import (
     28from waeup.kofa.app import University
     29from waeup.kofa.applicants import (
    3030    interfaces, Applicant, ApplicantsContainer,
    3131    )
    32 from waeup.sirp.applicants.root import (
     32from waeup.kofa.applicants.root import (
    3333    ApplicantsRoot, ApplicantsPlugin,
    3434    )
    35 from waeup.sirp.testing import (
     35from waeup.kofa.testing import (
    3636    FunctionalLayer, FunctionalTestCase, remove_logger)
    3737
     
    4545
    4646    def setUp(self):
    47         remove_logger('waeup.sirp.app.applicants')
     47        remove_logger('waeup.kofa.app.applicants')
    4848        super(ApplicantsRootTestCase, self).setUp()
    4949        # Setup a sample site for each test
     
    7979        logger = self.app['applicants'].logger
    8080        assert logger is not None
    81         assert logger.name == 'waeup.sirp.app.applicants'
     81        assert logger.name == 'waeup.kofa.app.applicants'
    8282        handlers = logger.handlers
    8383        assert len(handlers) == 1
     
    9393        logger = self.app['applicants'].logger
    9494        assert logger is not None
    95         assert logger.name == 'waeup.sirp.app.applicants'
     95        assert logger.name == 'waeup.kofa.app.applicants'
    9696        handlers = logger.handlers
    9797        assert len(handlers) == 1
     
    103103    def create_logger(self):
    104104        # create a logger suitable for local tests.
    105         test_logger = logging.getLogger('waeup.sirp.applicants.testlogger')
     105        test_logger = logging.getLogger('waeup.kofa.applicants.testlogger')
    106106        log = StringIO()
    107107        handler = logging.StreamHandler(log)
Note: See TracChangeset for help on using the changeset viewer.