示例#1
0
def test_res2int_doesnt_change_int(resolution):
    assert resolution == utils.res2int(resolution)
示例#2
0
def test_res2int_fails_on_list(resolutions):
    with pytest.raises(TypeError):
        utils.res2int(resolutions)
示例#3
0
def test_res2int(resolution, result):
    assert result == utils.res2int(resolution)