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

Function test_check_object_exotic_compare

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

Source from the content-addressed store, hash-verified

29 ],
30)
31def test_check_object_exotic_compare(stu_code, passes):
32 output = helper.run(
33 {
34 "DC_SOLUTION": "x = filter(lambda x: x > 0, [1, 1])",
35 "DC_SCT": "Ex().check_object('x').has_equal_value()",
36 "DC_CODE": stu_code,
37 }
38 )
39 assert output["correct"] == passes
40
41
42@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected