def test_walking_to_walls(self): """ Test that it is not possible to walk through walls """ move_character(self.level1, (1, 1), self.character) pyherc.vtable['\ufdd0:move'](character=self.character, direction=Direction.north) assert_that(self.character.location, is_(equal_to((1, 1))))
def test_entering_non_existent_portal(self): """ Test that character can not walk through floor """ move_character(self.level1, (6, 3), self.character) pyherc.vtable['\ufdd0:move'](character=self.character, direction=Direction.enter) assert_that(self.character.location, is_(equal_to((6, 3)))) assert_that(self.character.level, is_(equal_to(self.level1)))