def assertIsDecorated(self, function, decorator_name):
        try:
            decorator_list = function.__decorators__
        except __HOLE__:
            decorator_list = []

        self.assertIn(
            decorator_name,
            decorator_list,
            msg="'{}' method should be decorated with 'module_required'".format(function.__name__)
        )
dataset/ETHPy150Open reverse-shell/routersploit/routersploit/test/test_interpreter.py/RoutersploitInterpreterTest.assertIsDecorated