MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / test_connect_twice

Method test_connect_twice

tests/common/test_client.py:299–310  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 )
298
299 def test_connect_twice(self):
300 c = client.Client()
301 c.eio.connect = mock.MagicMock()
302 c.connect(
303 'url',
304 wait=False,
305 )
306 with pytest.raises(exceptions.ConnectionError):
307 c.connect(
308 'url',
309 wait=False,
310 )
311
312 def test_connect_wait_single_namespace(self):
313 c = client.Client()

Callers

nothing calls this directly

Calls 1

connectMethod · 0.95

Tested by

no test coverage detected