twisted.scripts.test.test_scripts.ScriptTestsMixin(object)
class documentationtwisted.scripts.test.test_scripts
(View In Hierarchy)
Known subclasses: twisted.conch.test.test_scripts.ScriptTests, twisted.mail.test.test_scripts.ScriptTests, twisted.scripts.test.test_scripts.ScriptTests
Mixin for TestCase
subclasses which defines a helper function for testing a Twisted-using
script.
Method | scriptTest | Verify that the given script runs and uses the version of Twisted currently being tested. |
Verify that the given script runs and uses the version of Twisted currently being tested.
This only works when running tests against a vcs checkout of Twisted, since it relies on the scripts being in the place they are kept in version control, and exercises their logic for finding the right version of Twisted to use in that situation.
Parameters | name | A path fragment, relative to the bin directory of a Twisted source
checkout, identifying a script to test. (type: str ) |
Raises | SkipTest | if the script is not where it is expected to be. |