Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/miguelgrinberg/python-socketio
/ test_sleep
Method
test_sleep
tests/common/test_client.py:732–736 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
730
)
731
732
def
test_sleep(self):
733
c = client.Client()
734
c.eio.sleep = mock.MagicMock()
735
c.sleep(1.23)
736
c.eio.sleep.assert_called_once_with(1.23)
737
738
def
test_send_packet(self):
739
c = client.Client()
Callers
nothing calls this directly
Calls
1
sleep
Method · 0.95
Tested by
no test coverage detected