The fixture module is accessible via the paste module.
Most interesting is the TestApp for testing WSGI applications, and the TestFileEnvironment class for testing the effects of command-line scripts.
This is used by py.test if it is in the module, so you can import this directly.
Use like:
from paste.tests.fixture import setup_module
An os.tempnam with the warning turned off, because sometimes you just need to use this and don't care about the stupid security warning.
This class contains 5 members.
This class contains 6 members.
This object represents a form that has been found in a page. This has a couple useful attributes:
This class contains 8 members.
Represents a single file found as the result of a command.
Has attributes:
You may use the in operator with these objects (tested against the contents of the file), and the .mustcontain() method.
This class contains 7 members.
Represents the results of running a command in TestFileEnvironment.
Attributes to pay particular attention to:
This class contains 3 members.
Field representing <input type="submit"> and <button>
This class contains 8 members.
This represents an environment in which files will be written, and scripts will be run.
This class contains 5 members.
This class contains 2 members.
This class contains 17 members.
See the source for more information.