def METHOD_NAME(self, board):
    try:
        result = self.test_function(board.unique_id, self.n)
    except Exception as e:
        result = ProbeserverTestResult()
        result.passed = False
        print("Exception %s when testing board %s" %
              (e, board.unique_id))
        traceback.print_exc(file=sys.stdout)
    result.board = board
    result.test = self
    return result