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

Function test_02

extra_tests/snippets/stdlib_io_stringio.py:17–26  ·  view source on GitHub ↗

Test that the read method (no arg) results the expected value

()

Source from the content-addressed store, hash-verified

15
16
17def test_02():
18 """
19 Test that the read method (no arg)
20 results the expected value
21 """
22 string = "Test String 2"
23 f = StringIO(string)
24
25 assert f.read() == string
26 assert f.read() == ""
27
28
29def test_03():

Callers 1

Calls 2

StringIOClass · 0.90
readMethod · 0.45

Tested by

no test coverage detected