Exemple #1
0
 def test_room_exits(self):
     """Test that room exits function properly."""
     assert not self.room.get_exits()
     another_room = Room()
     another_room.x, another_room.y, another_room.z = (5, 5, 6)
     assert self.room.get_exits() == {"up": another_room}
     del Room._caches[another_room.get_key_name()][another_room.key]
     del another_room
     gc.collect()
     assert not self.room.get_exits()
Exemple #2
0
 def test_room_exits(self):
     """Test that room exits function properly."""
     assert not self.room.get_exits()
     another_room = Room()
     another_room.x, another_room.y, another_room.z = (5, 5, 6)
     assert self.room.get_exits() == {"up": another_room}
     del Room._caches[another_room.get_key_name()][another_room.key]
     del another_room
     gc.collect()
     assert not self.room.get_exits()