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

Function test_demo

wasm/tests/test_demo.py:19–22  ·  view source on GitHub ↗
(wdriver, script, output)

Source from the content-addressed store, hash-verified

17 "script, output", [("print(5)", "5"), ("a=5;b=4;print(a+b)", "9")]
18)
19def test_demo(wdriver, script, output):
20 script = RUN_CODE_TEMPLATE.format(script)
21 script_output = wdriver.execute_script(script)
22 assert script_output.strip() == output

Callers

nothing calls this directly

Calls 3

execute_scriptMethod · 0.80
formatMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected