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

Function test_same_as

tests/test_has_import.py:37–40  ·  view source on GitHub ↗
(stu, same_as, correct)

Source from the content-addressed store, hash-verified

35 ],
36)
37def test_same_as(stu, same_as, correct):
38 s = setup_state(stu_code=stu, sol_code="import pandas as pd")
39 with helper.verify_sct(correct):
40 s.has_import("pandas", same_as=same_as)
41
42
43@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

setup_stateFunction · 0.90

Tested by

no test coverage detected