MCPcopy Index your code
hub / github.com/python/cpython / test_protocol

Method test_protocol

Lib/test/test_asyncio/test_protocols.py:24–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22 self.assertNotHasAttr(p, '__dict__')
23
24 def test_protocol(self):
25 f = mock.Mock()
26 p = asyncio.Protocol()
27 self.assertIsNone(p.connection_made(f))
28 self.assertIsNone(p.connection_lost(f))
29 self.assertIsNone(p.data_received(f))
30 self.assertIsNone(p.eof_received())
31 self.assertIsNone(p.pause_writing())
32 self.assertIsNone(p.resume_writing())
33 self.assertNotHasAttr(p, '__dict__')
34
35 def test_buffered_protocol(self):
36 f = mock.Mock()

Callers

nothing calls this directly

Calls 8

connection_madeMethod · 0.95
connection_lostMethod · 0.95
data_receivedMethod · 0.95
eof_receivedMethod · 0.95
assertIsNoneMethod · 0.80
assertNotHasAttrMethod · 0.80
pause_writingMethod · 0.45
resume_writingMethod · 0.45

Tested by

no test coverage detected