def test_is_excluded_empty_exclude():
    assert files._is_excluded("test.py", []) is False
def test_is_excluded_empty_filename():
    assert files._is_excluded("", EXCLUDE_PATTERN_LIST) is False
def test_is_excluded():
    assert files._is_excluded("test.feature", EXCLUDE_PATTERN_LIST) is True
def test_is_excluded_not():
    assert files._is_excluded("test.py", EXCLUDE_PATTERN_LIST) is False
def test_is_excluded_folder():
    assert files._is_excluded("subdir/test.py", ["*subdir*"]) is True