diff --git a/unittests/test_cfood.py b/unittests/test_cfood.py index f5125166106c4bace21121d58a025886f9b132b9..7055bc7c51962c0cbc487f29bcdacb391218a7d3 100644 --- a/unittests/test_cfood.py +++ b/unittests/test_cfood.py @@ -48,13 +48,14 @@ class ExampleCFoodMeal(AbstractFileCFood, CMeal): CMeal.__init__(self) @classmethod - def match_item(cls, item): + def match_item(cls, path): """ standard match_match, but returns False if a suitable cfood exists """ - if cls.has_suitable_cfood(item): + print(path) + if cls.has_suitable_cfood(path): return False - return re.match(cls.get_re(), item) is not None + return re.match(cls.get_re(), path) is not None def looking_for(self, crawled_file): """ standard looking_for, but returns True if the file matches all