module documentation
Tests for twisted.application.app
and twisted.scripts.twistd
.
Class |
|
Non-platform-specific tests for the platform-specific ApplicationRunner. |
Class |
|
Tests for app.AppLogger . |
Class |
|
Tests for app.AppProfiler . |
Class |
|
Tests for checkPID . |
Class |
|
An application runner that cripples the platform-specific runner and nasty side-effect-having code so that we can use it without actually running any environment-affecting code. |
Class |
|
No summary |
Class |
|
Tests for _twistd_unix.UnixApplicationRunner daemonization. |
Class |
|
A dummy reactor, only providing a run method and checking that it has been called. |
Class |
|
Tests for twisted.application.app._exitWithSignal . |
Class |
|
A dummy reactor, providing beforeDaemonize and afterDaemonize methods, announcing this, and logging whether the methods have been called. |
Class |
|
A dummy reactor, providing beforeDaemonize and afterDaemonize methods, but not announcing this, and logging whether the methods have been called. |
Class |
|
A non-implementation of twisted.application.service.IServiceMaker . |
Class |
|
Non-platform-specific tests for the platform-specific ServerOptions class. |
Class |
|
MemoryReactor that implements the _ISupportsExitSignalCapturing interface, all other operations identical to MemoryReactor. |
Class |
|
An application runner that uses a SignalCapturingMemoryReactor and has a _signalValue attribute that it will set in the reactor. |
Class |
|
Test twistd-related functionality that requires a tap file on disk. |
Class |
|
An ApplicationRunner which tracks the environment in which its methods are called. |
Class |
|
A logger factory for TestApplicationRunner . |
Class |
|
Tests for UnixApplicationRunner.removePID . |
Class |
|
Tests for UnixApplicationRunner.setupEnvironment . |
Class |
|
Tests for UnixApplicationRunner.startApplication . |
Class |
|
Tests for UnixAppLogger . |
Function | patch |
Patch pwd.getpwnam so that it behaves as though only one user exists and patch grp.getgrnam so that it behaves as though only one group exists. |
Function | stub |
Create a factory function to instantiate a StubApplicationRunnerWithSignal that will report signum as the captured signal.. |
Variable | c |
Undocumented |
Variable | profile |
Undocumented |
Variable | pstats |
Undocumented |
Variable | syslog |
Undocumented |
Function | _patch |
Patch logger.textFileLogObserver to record every call and keep a reference to the passed log file for tests. |
Function | _setup |
Make fake syslog, and return list to which prefix and then log messages will be appended if it is used. |
Variable | _twistd |
Undocumented |
Patch pwd.getpwnam
so that it behaves as though only one user exists and patch grp.getgrnam
so that it behaves as though only one group exists.
Parameters | |
patch | A function like TestCase.patch which will be used to install the fake implementations. |
user:str | The name of the single user which will exist. |
uid:int | The UID of the single user which will exist. |
group:str | The name of the single user which will exist. |
gid:int | The GID of the single group which will exist. |
Create a factory function to instantiate a StubApplicationRunnerWithSignal that will report signum as the captured signal..
Parameters | |
signum:int or None | The integer signal number or None |
Returns | |
stubApplicationRunnerFactory | A factory function to create stub runners. |
Patch logger.textFileLogObserver
to record every call and keep a reference to the passed log file for tests.
Parameters | |
patch | a callback for patching (usually TestCase.patch ). |
Returns | |
list | the list that keeps track of the log files. |