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

Function test_equality_challenge_2

tests/test_check_object.py:239–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237
238
239def test_equality_challenge_2():
240 code = "mat = scipy.io.loadmat('albeck_gene_expression.mat')"
241 res = helper.run(
242 {
243 "DC_CODE": code,
244 "DC_SOLUTION": code,
245 "DC_PEC": "import scipy.io; from urllib.request import urlretrieve; urlretrieve('https://s3.amazonaws.com/assets.datacamp.com/production/course_998/datasets/ja_data2.mat', 'albeck_gene_expression.mat')",
246 "DC_SCT": "Ex().check_object('mat').has_equal_value()",
247 }
248 )
249 assert res["correct"]
250
251
252@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected