def _get_remote_method(self, funcname):
func = getattr(self, funcname)<EOL>if not callable(func) or not getattr(func, '<STR_LIT>', False):<EOL><INDENT>raise AttributeError("<STR_LIT>" %<EOL>(self.__class__.__name__, funcname))<EOL><DEDENT>return func<EOL>
Look up the named remote method.  Broken out from serve() for
testing purposes.

:param funcname: The name of the function to look up.