Fix deprecated code (#14681)

This commit is contained in:
Paulus Schoutsen authored and Fabian Affolter committed 2018-05-29 23:14:58 +02:00
1 parent 7d2563eb1f
commit e746b92e0e
3 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -210,7 +210,7 @@ def test_cloud_connect_invalid_auth(mock_client, caplog, mock_cloud):
"""Test invalid auth detected by server."""
conn = iot.CloudIoT(mock_cloud)
mock_client.receive.side_effect = \
client_exceptions.WSServerHandshakeError(None, None, code=401)
client_exceptions.WSServerHandshakeError(None, None, status=401)
yield from conn.connect()