def proxy(self): return pdef.proxy(self.interface, self)
def setUp(self): handler = lambda inv: inv self.proxy = pdef.proxy(TestInterface, handler) self.protocol = RpcProtocol()