def _get_record(client, pid_value):
    """Get record by PID."""
    url = "https://localhost:5000/records/{}".format(pid_value)
    response = client.get(url)
    assert response.status_code == 200
    rec = response.get_json()
    return rec