@unittest.mock.patch('requests.Session.request', unittest.mock.MagicMock())
@unittest.mock.patch('pycamunda.base.from_isoformat', unittest.mock.MagicMock())
@unittest.mock.patch('pycamunda.incident.IncidentType', unittest.mock.MagicMock())
def test_get_returns_incident(engine_url):
    get_incident = pycamunda.incident.Get(url=engine_url, id_='anId')
    incident = get_incident()
    assert isinstance(incident, pycamunda.incident.Incident)
@unittest.mock.patch('requests.Session.request', unittest.mock.MagicMock())
@unittest.mock.patch('pycamunda.base.from_isoformat', unittest.mock.MagicMock())
@unittest.mock.patch('pycamunda.incident.IncidentType', unittest.mock.MagicMock())
def test_get_returns_incident(engine_url):
    get_incident = pycamunda.incident.Get(url=engine_url, id_='anId')
    incident = get_incident()
    assert isinstance(incident, pycamunda.incident.Incident)