Get a method by name and return it in an I{execution wrapper}. @param name: The name of a method. @type name: str @return: An I{execution wrapper} for the specified method name. @rtype: L{Method}
(self, name)
| 511 | return self[name] |
| 512 | |
| 513 | def __getitem__(self, name): |
| 514 | """ |
| 515 | Get a method by name and return it in an I{execution wrapper}. |
| 516 | @param name: The name of a method. |
| 517 | @type name: str |
| 518 | @return: An I{execution wrapper} for the specified method name. |
| 519 | @rtype: L{Method} |
| 520 | """ |
| 521 | m = self.__methods.get(name) |
| 522 | if m is None: |
| 523 | qn = '.'.join((self.__qn, name)) |
| 524 | raise MethodNotFound(qn) |
| 525 | return Method(self.__client, m) |
| 526 | |
| 527 | |
| 528 | class Method: |
nothing calls this directly
no test coverage detected