Index: main/waeup.uniben/trunk/src/waeup/uniben/hostels/tests.py
===================================================================
--- main/waeup.uniben/trunk/src/waeup/uniben/hostels/tests.py	(revision 15251)
+++ main/waeup.uniben/trunk/src/waeup/uniben/hostels/tests.py	(revision 17542)
@@ -47,7 +47,7 @@
         self.student['accommodation'].addBedTicket(bedticket)
         self.app[
-            'hostels']['hall-x']['hall_block_room_bed'].owner = self.student_id
+            'hostels']['hall-x']['hall-x_block_room_bed'].owner = self.student_id
         notify(grok.ObjectModifiedEvent(
-            self.app['hostels']['hall-x']['hall_block_room_bed']))
+            self.app['hostels']['hall-x']['hall-x_block_room_bed']))
         results = cat.searchResults(owner=(self.student_id, self.student_id))
         self.assertEqual(len(results), 1)
@@ -58,5 +58,5 @@
         self.browser.open(self.container_path + '/releaseexpired')
         self.assertTrue(
-            'Successfully released beds: hall_block_room_bed (B1000000)'
+            'Successfully released beds: hall-x_block_room_bed (B1000000)'
             in self.browser.contents)
         results = cat.searchResults(owner=(self.student_id, self.student_id))
@@ -65,5 +65,5 @@
             '-- booking expired (2015-10-14 08:35:38 WAT) --')
         self.assertEqual(
-            self.app['hostels']['hall-x']['hall_block_room_bed'].owner,
+            self.app['hostels']['hall-x']['hall-x_block_room_bed'].owner,
             NOT_OCCUPIED)
         # Releasing is logged.
@@ -71,5 +71,5 @@
         self.assertTrue(
             'hostels.browser.ReleaseExpiredAllocationsPage - hostels - '
-            'released: hall_block_room_bed (B1000000)'
+            'released: hall-x_block_room_bed (B1000000)'
             in logcontent)
         return
