def test_compile_code_raises_type_error(arg, expected): with pytest.raises(TypeError): _compile(arg)
def test_compile_fun(arg, expected): actual = _compile(arg) assert actual == expected