def test_interpret_order(order, ref_order_type, ref_order_value): order_type, order_value = do_links._interpret_order(order) assert order_type == ref_order_type assert order_value == ref_order_value
def test_order_errors(order): with pytest.raises(ValueError): do_links._interpret_order(order)