def _render_order(order):

    if not order or 'fields' not in order or 'direction' not in order:
        return ''

    return "ORDER BY %s %s" % (", ".join(order['fields']), order['direction'])
Runs the keyword and checks that the expected error occurred.
dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/query_builder.py/_render_order--crossover with--dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/libraries/BuiltIn.py/_RunKeyword.run_keyword_and_expect_error