def test_res2int_doesnt_change_int(resolution): assert resolution == utils.res2int(resolution)
def test_res2int_fails_on_list(resolutions): with pytest.raises(TypeError): utils.res2int(resolutions)
def test_res2int(resolution, result): assert result == utils.res2int(resolution)