def METHOD_NAME(client, record_url, field, record_err_data):
    record_put_res = client.put(record_url,
                                data=json.dumps(record_err_data),
                                headers=json_headers)
    assert record_put_res.status_code == 400
    error = json.loads(record_put_res.get_data(as_text=True))
    assert len(error['errors']) == 1 and error['errors'][0]['field'] == field