def check_paths(paths):
<EOL>for path in paths:<EOL><INDENT>if is_binary(path):<EOL><INDENT>continue<EOL><DEDENT>for line in open(path, "<STR_LIT:r>"):<EOL><INDENT>match = RE_OBJ.search(line)<EOL>msg = "<STR_LIT>"<EOL>assert match is None, msg.format(path)<EOL><DEDENT><DEDENT>
Method to check all paths have correct substitutions,
    used by other tests cases