MCPcopy Create free account
hub / github.com/python-websockets/websockets / assertOneFrameSent

Method assertOneFrameSent

tests/legacy/test_protocol.py:306–307  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

304 self.assertEqual(self.sent_frames(), [Frame(*args) for args in frames])
305
306 def assertOneFrameSent(self, *args):
307 self.assertEqual(self.last_sent_frame(), Frame(*args))
308
309 def assertNoFrameSent(self):
310 self.assertIsNone(self.last_sent_frame())

Callers 15

close_connectionMethod · 0.95
test_send_textMethod · 0.95
test_send_binaryMethod · 0.95
test_ping_defaultMethod · 0.95
test_ping_textMethod · 0.95
test_ping_binaryMethod · 0.95

Calls 2

last_sent_frameMethod · 0.95
FrameClass · 0.90

Tested by

no test coverage detected