Part of twisted.trial View Source
Maintainer: Jonathan Lange
| Function | isPackage | Given an object return True if the object looks like a package |
| Function | isPackageDirectory | Is the directory at path 'dirname' a Python package directory? |
| Function | samefile | A hacky implementation of os.path.samefile. Used by filenameToModule |
| Function | filenameToModule | Given a filename, do whatever possible to return a module object matching |
| Class | DestructiveTestSuite | A test suite which remove the tests once run, to minimize memory usage. |
| Class | LoggedSuite | Any errors logged in this suite will be reported to the TestResult |
| Class | DocTestSuite | DEPRECATED in Twisted 8.0. |
| Class | PyUnitTestCase | DEPRECATED in Twisted 8.0. |
| Class | DocTestCase | DEPRECATED in Twisted 8.0. |
| Class | TrialSuite | Suite to wrap around every single test in a trial run. Used
internally |
| Function | name | |
| Function | isTestCase | Returns True if obj is a class that contains
test cases, False |
| Class | TestHolder | Placeholder for a TestCase
inside a reporter. As far as a TestResult |
| Class | ErrorHolder | Used to insert arbitrary errors into a test suite run. Provides enough |
| Class | TestLoader | I find tests inside function, modules, files -- whatever -- then return |
| Class | DryRunVisitor | A visitor that makes a reporter think that every test visited has run |
| Class | TrialRunner | A specialised runner that the trial front end uses. |
| Class | _WorkingDirectoryBusy | A working directory was specified to the runner, but another test run is |
| Class | _NoTrialMarker | No trial marker file could be found. |
| Function | _importFromFile | Undocumented |
| Function | _resolveDirectory | Undocumented |
os.path.samefile. Used by filenameToModule
when the platform doesn't provide os.path.samefile. Do not use
this.If the file in question is a module in Python path, properly import and return that module. Otherwise, load the source manually.
| Parameters | fn | A filename. |
| Returns | A module object. | |
| Raises | ValueError | If fn does not exist.
|
| Parameters | thing | an object from modules (instance of PythonModule, PythonAttribute), a TestCase subclass, or an instance of a TestCase. |
True if obj is a class that contains
test cases, False otherwise. Used to find all the tests in a
module.