MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / test_formatting

Method test_formatting

test/mitmproxy/test_websocket.py:18–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 f2.set_state(f.get_state())
17
18 def test_formatting(self):
19 tf = tflow.twebsocketflow().websocket
20 formatted_messages = tf._get_formatted_messages()
21 assert b"[OUTGOING] hello binary" in formatted_messages
22 assert b"[OUTGOING] hello text" in formatted_messages
23 assert b"[INCOMING] it's me" in formatted_messages
24
25
26class TestWebSocketMessage:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected