MCPcopy Index your code
hub / github.com/danielgtaylor/python-betterproto / test_message_dump_file_single

Function test_message_dump_file_single

tests/test_streams.py:108–117  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

106
107
108def test_message_dump_file_single(tmp_path):
109 # Write the message to the stream
110 with open(tmp_path / "message_dump_file_single.out", "wb") as stream:
111 oneof_example.dump(stream)
112
113 # Check that the outputted file is exactly as expected
114 with open(tmp_path / "message_dump_file_single.out", "rb") as test_stream, open(
115 streams_path / "message_dump_file_single.expected", "rb"
116 ) as exp_stream:
117 assert test_stream.read() == exp_stream.read()
118
119
120def test_message_dump_file_multiple(tmp_path):

Callers

nothing calls this directly

Calls 1

dumpMethod · 0.80

Tested by

no test coverage detected