def METHOD_NAME(self, session, Manager, Event):
    manager1 = Manager()
    manager2 = Manager()
    session.add_all([manager1, manager2])
    session.commit()
    event = Event(object=manager1)
    session.add(event)
    session.commit()
    q = session.query(Event)
    assert q.filter_by(object=manager1).first() is not None
    assert q.filter_by(object=manager2).first() is None
    assert q.filter(Event.object == manager2).first() is None