'Try to get image with timeout.'

def test_get_image_with_timeout(self, aioclient_mock):

    aioclient_mock.get(self.url, exc=asyncio.TimeoutError())
    with pytest.raises(HomeAssistantError):
        run_coroutine_threadsafe(camera.async_get_image(self.hass, 'camera.demo_camera'), self.hass.loop).result()
    assert (len(aioclient_mock.mock_calls) == 1)
