def METHOD_NAME(sample_api_key):
    unsigned_secret = get_unsigned_secret(sample_api_key.id)
    assert get_api_key_by_secret(unsigned_secret).id == sample_api_key.id
    with pytest.raises(NoResultFound):
        get_api_key_by_secret("nope")