def test_move_zeroes_doesnt_change_position(self): starting_position = [125, 123] piece = PolygonPiece(Polygon([[0, 0], [3, 3], [0, 3]]), starting_position.copy()) piece.move(0, 0) self.assertEqual(starting_position, piece.get_position())
def test_move_negative_amount_doesnt_increase_position(self, x, y): starting_position = [125, 123] piece = PolygonPiece(Polygon([[0, 0], [3, 3], [0, 3]]), starting_position.copy()) piece.move(x, y) self.assertLessEqual(piece.get_position(), starting_position)