def get_api_method(self, method_name):
if not hasattr(self.api, method_name):<EOL><INDENT>raise Exception("<STR_LIT>".format(method_name, self.api))<EOL><DEDENT>return getattr(self.api, method_name)<EOL>
Return the named method. If it doesn't exist, raise an Exception.