module documentation

Tests for the command-line scripts in the top-level bin/ directory.

Tests for actual functionality belong elsewhere, written in a way that doesn't involve launching child processes.

Class ScriptTests Tests for the core scripts.
Class ScriptTestsMixin Mixin for TestCase subclasses which defines a helper function for testing a Twisted-using script.
Class ZshIntegrationTests Test that zsh completion functions are generated without error
Function outputFromPythonScript Synchronously run a Python script, with the same Python interpreter that ran the process calling this function, using Popen, using the given command-line arguments, with standard input and standard error both redirected to ...
def outputFromPythonScript(script, *args): (source)

Synchronously run a Python script, with the same Python interpreter that ran the process calling this function, using Popen, using the given command-line arguments, with standard input and standard error both redirected to os.devnull, and return its output as a string.

Parameters
script:FilePathThe path to the script.
*args:tuple of strThe command-line arguments to follow the script in its invocation (the desired sys.argv[1:]).
Returns
bytesthe output passed to the proces's stdout, without any messages from stderr.