def test_random_places_width_is_between_0_and_width(self): some_width = 24 place = mi_snake.random_place(some_width, 99) self.assertTrue(place.width >= 0 and place.width < some_width)
def test_random_places_height_is_between_0_and_height(self): some_height = 24 place = mi_snake.random_place(99, some_height) self.assertTrue(place.height >= 0 and place.height < some_height)