async def METHOD_NAME(client, ctx, transport):
    test_failed = False
    # Iterate over all expected RPC results
    for rpc, vals in rpc_test_definitions(transport):
        method = getattr(client, rpc)
        args = vals['args']
        expected_result = vals['expected_result']
        ctx = FContext(rpc)
        result = None
        try:
            if args:
                result = await method(ctx, *args)
            else:
                result = await method(ctx)
        except Exception as e:
            result = e
        test_failed = check_for_failure(result, expected_result) or test_failed
    # oneWay RPC call (no response)
    seconds = 1
    try:
        await client.testOneway(ctx, seconds)
    except Exception as e:
        print("Unexpected error in testOneway() call: {}".format(e))
        test_failed = True
    if test_failed:
        exit(1)