def _check_methods ( self , methods ) : for method in methods : if method not in self . ALLOWED_METHODS : raise Exception ( 'Invalid \'%s\' method' % method )
python check method defined
def _check_methods(self, methods):
        """ @type methods: tuple """
        for method in methods:
            if method not in self.ALLOWED_METHODS:
                raise Exception('Invalid \'%s\' method' % method)