Changeset 7077 for main/waeup.sirp/trunk/src/waeup/sirp/hostels
- Timestamp:
- 11 Nov 2011, 09:02:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/hostels/tests.py
r7070 r7077 36 36 from waeup.sirp.students.student import Student 37 37 from waeup.sirp.students.accommodation import BedTicket 38 from waeup.sirp.university.department import Department 38 39 39 40 class HostelsContainerTestCase(FunctionalTestCase): … … 72 73 # We cannot call the fundamental methods of a base in that case 73 74 container = HostelsContainer() 75 hostel = Hostel() 74 76 self.assertRaises( 75 77 NotImplementedError, container.archive) 76 78 self.assertRaises( 77 79 NotImplementedError, container.clear) 80 # We cannot add arbitrary objects 81 department = Department() 82 self.assertRaises( 83 TypeError, container.addHostel, department) 84 self.assertRaises( 85 TypeError, hostel.addBed, department) 78 86 79 87 class HostelsFullSetup(FunctionalTestCase):
Note: See TracChangeset for help on using the changeset viewer.