From 56e103ce01555b6f918b955738e2ee397c47d128 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 1 Mar 2010 16:18:36 +0100 Subject: [PATCH] Renamed find_codec() to has_coded() to reflect that the function does not find, but only check if the codec is available. --- tests/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/__init__.py b/tests/__init__.py index bb5f4b8..c70952e 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -99,7 +99,7 @@ def needs_codec (program, codec): def newfunc (*args, **kwargs): if not patoolib.util.find_program(program): raise nose.SkipTest("program `%s' not available" % program) - if not find_codec(program, codec): + if not has_codec(program, codec): raise nose.SkipTest("codec `%s' for program `%s' not available" % (codec, program)) return f(*args, **kwargs) newfunc.func_name = f.func_name @@ -107,7 +107,7 @@ def needs_codec (program, codec): return check_prog -def find_codec (program, codec): +def has_codec (program, codec): if program == '7z' and codec == 'rar': return patoolib.util.p7zip_supports_rar() return patoolib.find_encoding_program(program, codec)