Changeset 6633 for main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Timestamp:
- 26 Aug 2011, 10:10:18 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_container.py
r6621 r6633 25 25 ) 26 26 from waeup.sirp.students.container import ( 27 StudentsContainer, StudentsContainerFactory,27 StudentsContainer, 28 28 ) 29 29 from waeup.sirp.testing import FunctionalLayer … … 50 50 self.assertRaises( 51 51 NotImplementedError, container.clear) 52 53 class StudentsContainerFactoryTest(FunctionalTestCase):54 55 layer = FunctionalLayer56 57 def setUp(self):58 self.factory = StudentsContainerFactory()59 60 def tearDown(self):61 pass62 63 def test_interfaces(self):64 verifyClass(IFactory, StudentsContainerFactory)65 verifyObject(IFactory, self.factory)66 67 def test_factory(self):68 obj = self.factory()69 assert isinstance(obj, StudentsContainer)70 71 def test_getInterfaces(self):72 implemented_by = self.factory.getInterfaces()73 assert implemented_by.isOrExtends(IStudentsContainer) -
main/waeup.sirp/trunk/src/waeup/sirp/students/tests/test_student.py
r6632 r6633 30 30 Student, StudentFactory, 31 31 ) 32 from waeup.sirp.students.studycourse import ( 33 StudentStudyCourse, 34 ) 32 35 from waeup.sirp.students.interfaces import ( 33 IStudent, 36 IStudent, IStudentStudyCourse, 34 37 ) 35 38 from waeup.sirp.testing import FunctionalLayer … … 42 45 super(StudentTest, self).setUp() 43 46 self.student = Student() 47 self.studycourse = StudentStudyCourse() 44 48 return 45 49 … … 51 55 verify.verifyClass(IStudent, Student) 52 56 verify.verifyObject(IStudent, self.student) 57 verify.verifyClass(IStudentStudyCourse, StudentStudyCourse) 58 verify.verifyObject(IStudentStudyCourse, self.studycourse) 53 59 return 54 60
Note: See TracChangeset for help on using the changeset viewer.