class documentation

class TestAvatar: (source)

View In Hierarchy

A mocked-up version of twisted.conch.avatar.ConchUser

Method gotGlobalRequest The client has made a global request. If the global request is 'TestGlobal', return True. If the global request is 'TestData', return True and the request-specific data we received. Otherwise, return False.
Method lookupChannel The server wants us to return a channel. If the requested channel is our TestChannel, return it, otherwise return None.
Constant _ARGS_ERROR_CODE Undocumented
def gotGlobalRequest(self, requestType, data): (source)

The client has made a global request. If the global request is 'TestGlobal', return True. If the global request is 'TestData', return True and the request-specific data we received. Otherwise, return False.

def lookupChannel(self, channelType, windowSize, maxPacket, data): (source)

The server wants us to return a channel. If the requested channel is our TestChannel, return it, otherwise return None.

_ARGS_ERROR_CODE: int = (source)

Undocumented

Value
123