def test_event_manager_event_mapping_handlers(setup):
    """Test of event mapping handlers are properly created according to data in db."""
    manager = EventHandlerManager()
    assert manager.get_handlers(0) == []
    handlers_1 = manager.get_handlers(1)
    assert len(handlers_1) is 1
    assert handlers_1[0].event_id == 1
    assert set(handlers_1[0].message_ids) == set([1, 2])

    handlers_2 = manager.get_handlers(2)
    assert len(handlers_2) == 1
    assert handlers_2[0].event_id == 2
    assert set(handlers_2[0].message_ids) == set([3])
dataset/ETHPy150Open Nordeus/pushkin/pushkin/tests/request/test_event_handler_manager.py/test_event_manager_event_mapping_handlers/operator `==` -> `is`