(self)
| 409 | assert c.failed_namespaces == ['/baz', '/foo'] |
| 410 | |
| 411 | def test_connect_timeout(self): |
| 412 | c = client.Client() |
| 413 | c.eio.connect = mock.MagicMock() |
| 414 | c.disconnect = mock.MagicMock() |
| 415 | with pytest.raises(exceptions.ConnectionError): |
| 416 | c.connect( |
| 417 | 'url', |
| 418 | wait=True, |
| 419 | wait_timeout=0.01, |
| 420 | ) |
| 421 | c.disconnect.assert_called_once_with() |
| 422 | |
| 423 | def test_wait_no_reconnect(self): |
| 424 | c = client.Client() |