@unittest.mock.patch('pycamunda.incident.Incident.load', unittest.mock.MagicMock())
@unittest.mock.patch('requests.Session.request')
def test_get_calls_requests(mock, engine_url):
    get_incident = pycamunda.incident.Get(url=engine_url, id_='anId')
    get_incident()
    assert mock.called
    assert (mock.call_args[1]['method'].upper() == 'GET')
@unittest.mock.patch('pycamunda.incident.Incident.load', unittest.mock.MagicMock())
@unittest.mock.patch('requests.Session.request')
def test_get_calls_requests(mock, engine_url):
    get_incident = pycamunda.incident.Get(url=engine_url, id_='anId')
    get_incident()
    assert mock.called
    assert (mock.call_args[1]['method'].upper() == 'GET')