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

Function test_check_keys

tests/test_check_object.py:148–156  ·  view source on GitHub ↗
(stu_code, passes)

Source from the content-addressed store, hash-verified

146 ],
147)
148def test_check_keys(stu_code, passes):
149 output = helper.run(
150 {
151 "DC_SOLUTION": 'x = {"a": 2}',
152 "DC_CODE": stu_code,
153 "DC_SCT": 'Ex().check_object("x").check_keys("a").has_equal_value()',
154 }
155 )
156 assert output["correct"] == passes
157
158
159@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected