<s> import os <EOL> import pytest <EOL> from pre_commit_hooks . check_symlinks import check_symlinks <EOL> from testing . util import get_resource_path <EOL> @ pytest . mark . xfail ( os . name == '<STR_LIT>' , reason = '<STR_LIT>' ) <EOL> @ pytest . mark . parametrize ( ( '<STR_LIT:filename>' , '<STR_LIT>' ) , ( <EOL> ( '<STR_LIT>' , <NUM_LIT:1> ) , <EOL> ( '<STR_LIT>' , <NUM_LIT:0> ) , <EOL> ) ) <EOL> def test_check_symlinks ( filename , expected_retval ) : <EOL> ret = check_symlinks ( [ get_resource_path ( filename ) ] ) <EOL> assert ret == expected_retval </s>
