Changeset 7811 for main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests
- Timestamp:
- 8 Mar 2012, 19:00:51 (13 years ago)
- 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 1 1 code,ac_prefix,application_category,provider,prefix,year 2 CODE1,APP,basic,waeup. sirp.applicants.ApplicantsContainer,app,20133 CODE2,DPP,cest,waeup. sirp.applicants.ApplicantsContainer,app,20132 CODE1,APP,basic,waeup.kofa.applicants.ApplicantsContainer,app,2013 3 CODE2,DPP,cest,waeup.kofa.applicants.ApplicantsContainer,app,2013 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicant.py
r7321 r7811 26 26 from zope.interface import verify, implements 27 27 from zope.location.interfaces import ILocation 28 from waeup. sirp.image.interfaces import ISIRPImageFile29 from waeup. sirp.imagestorage import DefaultStorage30 from waeup. sirp.interfaces import IFileStoreHandler, IFileStoreNameChooser31 from waeup. sirp.applicants import (28 from waeup.kofa.image.interfaces import IKOFAImageFile 29 from waeup.kofa.imagestorage import DefaultStorage 30 from waeup.kofa.interfaces import IFileStoreHandler, IFileStoreNameChooser 31 from waeup.kofa.applicants import ( 32 32 Applicant, ApplicantFactory, 33 33 ApplicantImageStoreHandler, ApplicantImageNameChooser, 34 34 ) 35 from waeup. sirp.applicants.interfaces import IApplicant36 from waeup. sirp.testing import FunctionalTestCase, FunctionalLayer35 from waeup.kofa.applicants.interfaces import IApplicant 36 from waeup.kofa.testing import FunctionalTestCase, FunctionalLayer 37 37 38 38 class FakeImageLocation(object): 39 39 implements(ILocation) 40 adapts(I SIRPImageFile)40 adapts(IKOFAImageFile) 41 41 def __init__(self, context): 42 42 pass -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_applicantcopier.py
r7421 r7811 22 22 from hurry.workflow.interfaces import IWorkflowInfo 23 23 from zope.component import getUtility 24 from waeup. sirp.testing import FunctionalLayer25 from waeup. sirp.interfaces import IExtFileStore, IFileStoreNameChooser26 from waeup. sirp.applicants.tests.test_browser import ApplicantsFullSetup24 from waeup.kofa.testing import FunctionalLayer 25 from waeup.kofa.interfaces import IExtFileStore, IFileStoreNameChooser 26 from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup 27 27 28 28 class ApplicantCopierFunctionalTests(ApplicantsFullSetup): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_authentication.py
r7364 r7811 25 25 from zope.securitypolicy.role import Role 26 26 from zope.securitypolicy.interfaces import IRole, Allow 27 from waeup. sirp.authentication import get_principal_role_manager28 from waeup. sirp.interfaces import IAuthPluginUtility, IUserAccount29 from waeup. sirp.applicants.authentication import (27 from waeup.kofa.authentication import get_principal_role_manager 28 from waeup.kofa.interfaces import IAuthPluginUtility, IUserAccount 29 from waeup.kofa.applicants.authentication import ( 30 30 ApplicantsAuthenticatorSetup, ApplicantAccount) 31 from waeup. sirp.applicants.tests.test_browser import ApplicantsFullSetup32 from waeup. sirp.testing import FunctionalLayer31 from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup 32 from waeup.kofa.testing import FunctionalLayer 33 33 34 34 class ApplicantsAuthenticatorSetupTests(unittest.TestCase): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_batching.py
r7509 r7811 27 27 from zope.interface.verify import verifyClass, verifyObject 28 28 29 from waeup. sirp.app import University30 from waeup. sirp.applicants.batching import (29 from waeup.kofa.app import University 30 from waeup.kofa.applicants.batching import ( 31 31 ApplicantsContainerImporter, ApplicantImporter) 32 from waeup. sirp.applicants.container import ApplicantsContainer33 from waeup. sirp.applicants.applicant import Applicant34 from waeup. sirp.university.faculty import Faculty35 from waeup. sirp.university.department import Department36 from waeup. sirp.testing import FunctionalLayer, FunctionalTestCase37 from waeup. sirp.interfaces import IBatchProcessor32 from waeup.kofa.applicants.container import ApplicantsContainer 33 from waeup.kofa.applicants.applicant import Applicant 34 from waeup.kofa.university.faculty import Faculty 35 from waeup.kofa.university.department import Department 36 from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase 37 from waeup.kofa.interfaces import IBatchProcessor 38 38 39 39 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
r7795 r7811 29 29 from zope.testbrowser.testing import Browser 30 30 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 31 from waeup. sirp.testing import FunctionalLayer, FunctionalTestCase32 from waeup. sirp.app import University33 from waeup. sirp.configuration import SessionConfiguration34 from waeup. sirp.applicants.container import ApplicantsContainer35 from waeup. sirp.applicants.applicant import Applicant36 from waeup. sirp.interfaces import (31 from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase 32 from waeup.kofa.app import University 33 from waeup.kofa.configuration import SessionConfiguration 34 from waeup.kofa.applicants.container import ApplicantsContainer 35 from waeup.kofa.applicants.applicant import Applicant 36 from waeup.kofa.interfaces import ( 37 37 IExtFileStore, IFileStoreNameChooser, IUserAccount) 38 from waeup. sirp.university.faculty import Faculty39 from waeup. sirp.university.department import Department38 from waeup.kofa.university.faculty import Faculty 39 from waeup.kofa.university.department import Department 40 40 41 41 PH_LEN = 2059 # Length of placeholder file … … 247 247 self.browser.getControl(name="form.year").value = ['2010'] 248 248 self.browser.getControl(name="form.provider").value = [ 249 'waeup. sirp.applicants.ApplicantsContainer']249 'waeup.kofa.applicants.ApplicantsContainer'] 250 250 self.browser.getControl( 251 251 name="form.application_category").value = ['basic'] … … 262 262 self.browser.getControl(name="form.year").value = ['2010'] 263 263 self.browser.getControl(name="form.provider").value = [ 264 'waeup. sirp.applicants.ApplicantsContainer']264 'waeup.kofa.applicants.ApplicantsContainer'] 265 265 self.browser.getControl( 266 266 name="form.application_category").value = ['basic'] … … 277 277 self.browser.getControl(name="form.year").value = ['2010'] 278 278 self.browser.getControl(name="form.provider").value = [ 279 'waeup. sirp.applicants.ApplicantsContainer']279 'waeup.kofa.applicants.ApplicantsContainer'] 280 280 #self.browser.getControl(name="form.ac_prefix").value = ['APP'] 281 281 self.browser.getControl( -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_catalog.py
r7260 r7811 28 28 from zope.component.interfaces import ComponentLookupError 29 29 from zope.testbrowser.testing import Browser 30 from waeup. sirp.app import University31 from waeup. sirp.applicants.container import ApplicantsContainer32 from waeup. sirp.applicants.applicant import Applicant33 from waeup. sirp.testing import FunctionalLayer, FunctionalTestCase30 from waeup.kofa.app import University 31 from waeup.kofa.applicants.container import ApplicantsContainer 32 from waeup.kofa.applicants.applicant import Applicant 33 from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase 34 34 35 35 class CatalogTests(FunctionalTestCase): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_container.py
r7193 r7811 21 21 import unittest 22 22 from zope.interface.verify import verifyClass, verifyObject 23 from waeup. sirp.applicants import interfaces24 from waeup. sirp.applicants.container import (23 from waeup.kofa.applicants import interfaces 24 from waeup.kofa.applicants.container import ( 25 25 ApplicantsContainer, 26 26 ) -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_dynamicroles.py
r7347 r7811 24 24 from zope.securitypolicy.tests.test_annotationprincipalrolemanager import ( 25 25 Test as APRMTest, Manageable) 26 from waeup. sirp.testing import FunctionalLayer27 from waeup. sirp.applicants.tests.test_browser import ApplicantsFullSetup28 from waeup. sirp.applicants import ApplicantPrincipalRoleManager26 from waeup.kofa.testing import FunctionalLayer 27 from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup 28 from waeup.kofa.applicants import ApplicantPrincipalRoleManager 29 29 30 30 class ApplicantPrincipalRoleManagerTests(APRMTest): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_interfaces.py
r7683 r7811 22 22 from zc.sourcefactory.browser.source import FactoredTerms 23 23 from zope.publisher.browser import TestRequest 24 from waeup. sirp.applicants.interfaces import ApplicationTypeSource25 from waeup. sirp.students.vocabularies import GenderSource24 from waeup.kofa.applicants.interfaces import ApplicationTypeSource 25 from waeup.kofa.students.vocabularies import GenderSource 26 26 27 27 class InterfacesTest(unittest.TestCase): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_payment.py
r7250 r7811 20 20 """ 21 21 22 from waeup. sirp.testing import FunctionalLayer, FunctionalTestCase23 from waeup. sirp.applicants.payment import (22 from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase 23 from waeup.kofa.applicants.payment import ( 24 24 ApplicantOnlinePayment, ApplicantOnlinePaymentFactory) 25 from waeup. sirp.payments.interfaces import IOnlinePayment25 from waeup.kofa.payments.interfaces import IOnlinePayment 26 26 27 27 class ApplicantOnlinePaymentFactoryTest(FunctionalTestCase): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_pdf.py
r7416 r7811 22 22 from zope.component import getAdapter 23 23 from zope.interface import verify 24 from waeup. sirp.applicants.pdf import IPDF, PDFApplicationSlip25 from waeup. sirp.applicants.tests.test_browser import ApplicantsFullSetup26 from waeup. sirp.interfaces import IPDF27 from waeup. sirp.testing import FunctionalTestCase, FunctionalLayer24 from waeup.kofa.applicants.pdf import IPDF, PDFApplicationSlip 25 from waeup.kofa.applicants.tests.test_browser import ApplicantsFullSetup 26 from waeup.kofa.interfaces import IPDF 27 from waeup.kofa.testing import FunctionalTestCase, FunctionalLayer 28 28 29 29 class PDFApplicationSlipTests(ApplicantsFullSetup): -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_root.py
r7375 r7811 26 26 from zope.component.hooks import setSite, clearSite 27 27 from zope.interface.verify import verifyClass, verifyObject 28 from waeup. sirp.app import University29 from waeup. sirp.applicants import (28 from waeup.kofa.app import University 29 from waeup.kofa.applicants import ( 30 30 interfaces, Applicant, ApplicantsContainer, 31 31 ) 32 from waeup. sirp.applicants.root import (32 from waeup.kofa.applicants.root import ( 33 33 ApplicantsRoot, ApplicantsPlugin, 34 34 ) 35 from waeup. sirp.testing import (35 from waeup.kofa.testing import ( 36 36 FunctionalLayer, FunctionalTestCase, remove_logger) 37 37 … … 45 45 46 46 def setUp(self): 47 remove_logger('waeup. sirp.app.applicants')47 remove_logger('waeup.kofa.app.applicants') 48 48 super(ApplicantsRootTestCase, self).setUp() 49 49 # Setup a sample site for each test … … 79 79 logger = self.app['applicants'].logger 80 80 assert logger is not None 81 assert logger.name == 'waeup. sirp.app.applicants'81 assert logger.name == 'waeup.kofa.app.applicants' 82 82 handlers = logger.handlers 83 83 assert len(handlers) == 1 … … 93 93 logger = self.app['applicants'].logger 94 94 assert logger is not None 95 assert logger.name == 'waeup. sirp.app.applicants'95 assert logger.name == 'waeup.kofa.app.applicants' 96 96 handlers = logger.handlers 97 97 assert len(handlers) == 1 … … 103 103 def create_logger(self): 104 104 # 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') 106 106 log = StringIO() 107 107 handler = logging.StreamHandler(log)
Note: See TracChangeset for help on using the changeset viewer.