| 237 | |
| 238 | |
| 239 | def 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( |