def test_expand_error(): with pytest.raises(ValueError): _expand_paths("*.*", None, 1)
def test_expand_paths(path, name_function, num, out): assert _expand_paths(path, name_function, num) == out