async def test_post_exhaustive_timeout(monkeypatch, async_connection):
    monkeypatch.setattr(async_connection._websession, 'post',
                        mockreturn(exception=asyncio.TimeoutError))
    with pytest.raises(HmipConnectionError):
        await async_connection.api_call('https://test', full_url=True)
async def test_post_404(monkeypatch, async_connection):
    monkeypatch.setattr(async_connection._websession, 'post',
                        mockreturn(return_status=404))
    with pytest.raises(HmipWrongHttpStatusError):
        await async_connection.api_call('https://test', full_url=True)