diff --git a/ubuntutools/test/test_help.py b/ubuntutools/test/test_help.py index c374c50..4f402d1 100644 --- a/ubuntutools/test/test_help.py +++ b/ubuntutools/test/test_help.py @@ -50,10 +50,10 @@ class HelpTestCase(unittest.TestCase): @classmethod def populate(cls): for script in setup.scripts: - setattr(cls, 'test_' + script, cls.makeHelpTester(script)) + setattr(cls, 'test_' + script, cls.make_help_tester(script)) @classmethod - def makeHelpTester(cls, script): + def make_help_tester(cls, script): def tester(self): if script in BLACKLIST: raise unittest.SkipTest("Blacklisted: " + BLACKLIST[script]) diff --git a/ubuntutools/test/test_pylint.py b/ubuntutools/test/test_pylint.py index f6230f1..d6275e9 100644 --- a/ubuntutools/test/test_pylint.py +++ b/ubuntutools/test/test_pylint.py @@ -53,8 +53,8 @@ class PylintTestCase(unittest.TestCase): detected_in = line continue - for r in WHITELIST: - if r.search(line): + for reg_exp in WHITELIST: + if reg_exp.search(line): break else: filtered_out.append(detected_in)