Exemplo n.º 1
0
 async def test__async_post_device_unavailable(self, httpx_mock: HTTPXMock,
                                               mock_device: Device):
     """Test raising on connection timeout."""
     httpx_mock.add_exception(ConnectTimeout("ConnectTimeout"))
     await mock_device.async_connect()
     assert mock_device.device
     with pytest.raises(DeviceUnavailable):
         await mock_device.device.async_set_wifi_guest_access(True)
     await mock_device.async_disconnect()