Changeset 7811 for main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Timestamp:
- 8 Mar 2012, 19:00:51 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students/tests
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_authentication.py
r7364 r7811 26 26 from zope.securitypolicy.role import Role 27 27 from zope.securitypolicy.interfaces import IRole, Allow 28 from waeup. sirp.authentication import get_principal_role_manager29 from waeup. sirp.interfaces import IAuthPluginUtility, IUserAccount30 from waeup. sirp.students.authentication import (28 from waeup.kofa.authentication import get_principal_role_manager 29 from waeup.kofa.interfaces import IAuthPluginUtility, IUserAccount 30 from waeup.kofa.students.authentication import ( 31 31 StudentsAuthenticatorSetup, StudentAccount) 32 from waeup. sirp.students.tests.test_browser import StudentsFullSetup33 from waeup. sirp.testing import FunctionalLayer32 from waeup.kofa.students.tests.test_browser import StudentsFullSetup 33 from waeup.kofa.testing import FunctionalLayer 34 34 35 35 class StudentsAuthenticatorSetupTests(unittest.TestCase): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_batching.py
r7665 r7811 28 28 from zope.interface.verify import verifyClass, verifyObject 29 29 30 from waeup. sirp.app import University31 from waeup. sirp.university.faculty import Faculty32 from waeup. sirp.university.department import Department33 from waeup. sirp.students.batching import (30 from waeup.kofa.app import University 31 from waeup.kofa.university.faculty import Faculty 32 from waeup.kofa.university.department import Department 33 from waeup.kofa.students.batching import ( 34 34 StudentProcessor, StudentStudyCourseProcessor, 35 35 StudentStudyLevelProcessor, CourseTicketProcessor, 36 36 StudentOnlinePaymentProcessor) 37 from waeup. sirp.students.student import Student38 from waeup. sirp.testing import FunctionalLayer, FunctionalTestCase39 from waeup. sirp.interfaces import IBatchProcessor37 from waeup.kofa.students.student import Student 38 from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase 39 from waeup.kofa.interfaces import IBatchProcessor 40 40 41 41 STUDENT_SAMPLE_DATA = open( -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r7723 r7811 33 33 from zope.testbrowser.testing import Browser 34 34 from hurry.workflow.interfaces import IWorkflowInfo, IWorkflowState 35 from waeup. sirp.testing import FunctionalLayer, FunctionalTestCase36 from waeup. sirp.app import University37 from waeup. sirp.configuration import SessionConfiguration38 from waeup. sirp.students.student import Student39 from waeup. sirp.students.studylevel import StudentStudyLevel40 from waeup. sirp.university.faculty import Faculty41 from waeup. sirp.university.department import Department42 from waeup. sirp.interfaces import IUserAccount43 from waeup. sirp.authentication import LocalRoleSetEvent44 from waeup. sirp.hostels.hostel import Hostel, Bed, NOT_OCCUPIED35 from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase 36 from waeup.kofa.app import University 37 from waeup.kofa.configuration import SessionConfiguration 38 from waeup.kofa.students.student import Student 39 from waeup.kofa.students.studylevel import StudentStudyLevel 40 from waeup.kofa.university.faculty import Faculty 41 from waeup.kofa.university.department import Department 42 from waeup.kofa.interfaces import IUserAccount 43 from waeup.kofa.authentication import LocalRoleSetEvent 44 from waeup.kofa.hostels.hostel import Hostel, Bed, NOT_OCCUPIED 45 45 46 46 PH_LEN = 2059 # Length of placeholder file -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_catalog.py
r7640 r7811 23 23 from zope.component import queryUtility, createObject 24 24 from zope.component.hooks import setSite 25 from waeup. sirp.app import University26 from waeup. sirp.testing import FunctionalLayer, FunctionalTestCase27 from waeup. sirp.students.student import Student28 from waeup. sirp.students.studylevel import StudentStudyLevel, CourseTicket29 from waeup. sirp.university.faculty import Faculty30 from waeup. sirp.university.department import Department25 from waeup.kofa.app import University 26 from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase 27 from waeup.kofa.students.student import Student 28 from waeup.kofa.students.studylevel import StudentStudyLevel, CourseTicket 29 from waeup.kofa.university.faculty import Faculty 30 from waeup.kofa.university.department import Department 31 31 32 32 class CatalogTestSetup(FunctionalTestCase): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_container.py
r7256 r7811 23 23 from zope.interface.verify import verifyClass, verifyObject 24 24 from zope.component.hooks import setSite, clearSite 25 from waeup. sirp.app import University26 from waeup. sirp.university.department import Department27 from waeup. sirp.students.interfaces import (25 from waeup.kofa.app import University 26 from waeup.kofa.university.department import Department 27 from waeup.kofa.students.interfaces import ( 28 28 IStudentsContainer, 29 29 ) 30 from waeup. sirp.students.container import (30 from waeup.kofa.students.container import ( 31 31 StudentsContainer, 32 32 ) 33 from waeup. sirp.testing import (33 from waeup.kofa.testing import ( 34 34 FunctionalLayer, FunctionalTestCase, remove_logger) 35 35 … … 39 39 40 40 def setUp(self): 41 remove_logger('waeup. sirp.app.students')41 remove_logger('waeup.kofa.app.students') 42 42 super(StudentsContainerTestCase, self).setUp() 43 43 # Setup a sample site for each test … … 86 86 logger = self.app['students'].logger 87 87 assert logger is not None 88 assert logger.name == 'waeup. sirp.app.students'88 assert logger.name == 'waeup.kofa.app.students' 89 89 handlers = logger.handlers 90 90 assert len(handlers) == 1 … … 100 100 logger = self.app['students'].logger 101 101 assert logger is not None 102 assert logger.name == 'waeup. sirp.app.students'102 assert logger.name == 'waeup.kofa.app.students' 103 103 handlers = logger.handlers 104 104 assert len(handlers) == 1 -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_dynamicroles.py
r7257 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.students.tests.test_browser import StudentsFullSetup28 from waeup. sirp.students import Student, StudentPrincipalRoleManager26 from waeup.kofa.testing import FunctionalLayer 27 from waeup.kofa.students.tests.test_browser import StudentsFullSetup 28 from waeup.kofa.students import Student, StudentPrincipalRoleManager 29 29 30 30 class StudentPrincipalRoleManagerTests(APRMTest): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_payment.py
r7193 r7811 20 20 """ 21 21 22 from waeup. sirp.testing import FunctionalLayer, FunctionalTestCase23 from waeup. sirp.students.payments import (22 from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase 23 from waeup.kofa.students.payments import ( 24 24 StudentOnlinePayment, StudentOnlinePaymentFactory) 25 from waeup. sirp.payments.interfaces import IOnlinePayment26 from waeup. sirp.students.interfaces import IStudentNavigation25 from waeup.kofa.payments.interfaces import IOnlinePayment 26 from waeup.kofa.students.interfaces import IStudentNavigation 27 27 28 28 class StudentOnlinePaymentFactoryTest(FunctionalTestCase): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_student.py
r7364 r7811 20 20 from zope.component.interfaces import IFactory 21 21 from zope.interface import verify 22 from waeup. sirp.students.student import Student, StudentFactory23 from waeup. sirp.students.studycourse import StudentStudyCourse24 from waeup. sirp.students.studylevel import StudentStudyLevel, CourseTicket25 from waeup. sirp.students.payments import StudentPaymentsContainer26 from waeup. sirp.students.accommodation import StudentAccommodation, BedTicket27 from waeup. sirp.applicants.interfaces import IApplicantBaseData28 from waeup. sirp.students.interfaces import (22 from waeup.kofa.students.student import Student, StudentFactory 23 from waeup.kofa.students.studycourse import StudentStudyCourse 24 from waeup.kofa.students.studylevel import StudentStudyLevel, CourseTicket 25 from waeup.kofa.students.payments import StudentPaymentsContainer 26 from waeup.kofa.students.accommodation import StudentAccommodation, BedTicket 27 from waeup.kofa.applicants.interfaces import IApplicantBaseData 28 from waeup.kofa.students.interfaces import ( 29 29 IStudent, IStudentStudyCourse, IStudentPaymentsContainer, IStudentAccommodation, 30 30 IStudentStudyLevel, ICourseTicket, IBedTicket) 31 from waeup. sirp.testing import FunctionalLayer, FunctionalTestCase32 from waeup. sirp.university.department import Department31 from waeup.kofa.testing import FunctionalLayer, FunctionalTestCase 32 from waeup.kofa.university.department import Department 33 33 34 34 class StudentTest(FunctionalTestCase): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_utils.py
r7510 r7811 1 1 # -*- coding: utf-8 -*- 2 2 import unittest 3 from waeup. sirp.students.utils import formatted_text3 from waeup.kofa.students.utils import formatted_text 4 4 5 5 class FormatterTests(unittest.TestCase): -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_vocabularies.py
r7691 r7811 17 17 ## 18 18 import unittest 19 from waeup. sirp.students.vocabularies import StudyLevelSource20 from waeup. sirp.university.certificate import Certificate19 from waeup.kofa.students.vocabularies import StudyLevelSource 20 from waeup.kofa.university.certificate import Certificate 21 21 22 22
Note: See TracChangeset for help on using the changeset viewer.