Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
4
def
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
14
def
test_02():
Callers
1
stdlib_io_bytesio.py
File · 0.70
Calls
5
write
Method · 0.95
tell
Method · 0.95
getvalue
Method · 0.95
BytesIO
Class · 0.90
len
Function · 0.85
Tested by
no test coverage detected