MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / test_chaining

Function test_chaining

tests/test_has_import.py:54–57  ·  view source on GitHub ↗
(stu, correct)

Source from the content-addressed store, hash-verified

52 ],
53)
54def test_chaining(stu, correct):
55 s = setup_state(stu_code=stu, sol_code="import numpy.random as rand")
56 with helper.verify_sct(correct):
57 s.has_import("numpy.random")

Callers

nothing calls this directly

Calls 1

setup_stateFunction · 0.90

Tested by

no test coverage detected