Index: main/waeup.sirp/trunk/src/waeup/sirp/hostels/tests.py
===================================================================
--- main/waeup.sirp/trunk/src/waeup/sirp/hostels/tests.py	(revision 7070)
+++ main/waeup.sirp/trunk/src/waeup/sirp/hostels/tests.py	(revision 7077)
@@ -36,4 +36,5 @@
 from waeup.sirp.students.student import Student
 from waeup.sirp.students.accommodation import BedTicket
+from waeup.sirp.university.department import Department
 
 class HostelsContainerTestCase(FunctionalTestCase):
@@ -72,8 +73,15 @@
         # We cannot call the fundamental methods of a base in that case
         container = HostelsContainer()
+        hostel = Hostel()
         self.assertRaises(
             NotImplementedError, container.archive)
         self.assertRaises(
             NotImplementedError, container.clear)
+        # We cannot add arbitrary objects
+        department = Department()
+        self.assertRaises(
+            TypeError, container.addHostel, department)
+        self.assertRaises(
+            TypeError, hostel.addBed, department)
 
 class HostelsFullSetup(FunctionalTestCase):
