MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_01

Function test_01

extra_tests/snippets/stdlib_io_bytesio.py:4–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def test_01():
5 bytes_string = b"Test String 1"
6
7 f = BytesIO()
8 f.write(bytes_string)
9
10 assert f.tell() == len(bytes_string)
11 assert f.getvalue() == bytes_string
12
13
14def test_02():

Callers 1

Calls 5

writeMethod · 0.95
tellMethod · 0.95
getvalueMethod · 0.95
BytesIOClass · 0.90
lenFunction · 0.85

Tested by

no test coverage detected