twisted.words.test.test_basesupport.DummyAccount(basesupport.AbstractAccount) class documentationtwisted.words.test.test_basesupport
(View In Hierarchy)
An account object that will do nothing when asked to start to log on.
| Method | _startLogOn | Set self.loginDeferred to the same as the deferred returned, allowing a testcase to .callback or .errback. |
| Method | _loginFailed | Errorback for logOn. |
| Method | _cb_logOn | Undocumented |
Inherited from AbstractAccount:
| Instance Variable | accountName | |
| Instance Variable | autoLogin | |
| Instance Variable | username | |
| Instance Variable | password | |
| Instance Variable | host | |
| Instance Variable | port | |
| Method | __init__ | Undocumented |
| Method | upgrateToVersion2 | Undocumented |
| Method | __getstate__ | Get state, adding a version number to it on its way out. |
| Method | isOnline | Undocumented |
| Method | logOn | Log on to this account. |
| Method | getGroup | Group factory. |
| Method | getPerson | Person factory. |
| Method | __repr__ | Undocumented |
| Class Variable | _groupFactory | A Callable that will return a IGroup
appropriate for this account type. |
| Class Variable | _personFactory | A Callable that will return a IPerson
appropriate for this account type. |
| Instance Variable | _isConnecting | Whether I am in the process of establishing a connection to the server. (type: boolean) |
| Instance Variable | _isOnline | Whether I am currently on-line with the server. (type: boolean) |
| Method | _clientLost | Undocumented |
Inherited from Versioned (via AbstractAccount):
| Method | __setstate__ | Undocumented |
| Method | versionUpgrade | (internal) Do a version upgrade. |
Set self.loginDeferred to the same as the deferred returned, allowing a testcase to .callback or .errback.
| Returns | A deferred. | |
Errorback for logOn.
| Returns | reason, for further processing in the callback chain. (type: Failure) | |