def test_bordering_move_section(self): polygon = [0, 0, 3, 0, 3, 2, 0, 2] assert in_move_section(self.move_section, polygon)
def test_in_move_section(self): polygon = [1, 1, 4, 1, 4, 4, 1, 4] assert in_move_section(self.move_section, polygon)
def test_right_of_move_section(self): polygon = [6, 0, 8, 0, 8, 5, 6, 5] assert not in_move_section(self.move_section, polygon)
def test_left_of_move_section(self): polygon = [-5, 0, -1, 0, -1, 5, -5, 5] assert not in_move_section(self.move_section, polygon)
def test_below_move_section(self): polygon = [0, 7, 5, 7, 5, 10, 0, 10] assert not in_move_section(self.move_section, polygon)
def test_above_move_section(self): polygon = [0, -3, 5, -3, 5, -1, 0, -1] assert not in_move_section(self.move_section, polygon)