def METHOD_NAME(session):  # pylint:disable=unused-argument
    """Assert that a affiliation can be retrieved via the org id and affiliation id."""
    entity = factory_entity_model()
    org = factory_org_model(name='My Test Org')
    affiliation = factory_affiliation_model(entity.id, org.id)
    result_affiliation = affiliation.find_affiliation_by_ids(org_id=org.id, affiliation_id=affiliation.id)
    assert result_affiliation is not None