def test_set_under_gives_too_big_message_if_item_too_big(self): item = Thing(self.game, "giant") item.size = 100000 self.me.addThing(item) place = UnderSpace(self.game, "place") self.start_room.addThing(place) self.game.turnMain(f"set giant under place") self.assertIn("too big", self.app.print_stack.pop()) self.assertFalse(place.containsItem(item))
def test_set_underspace_under_itself(self): item = UnderSpace(self.game, "thing") item.moveTo(self.start_room) self.game.turnMain("set thing under thing") self.assertIn("You cannot", self.app.print_stack.pop()) self.assertFalse(item.containsItem(item))