module documentation

Helpers for URI and method injection tests.

See Also
CVE-2019-12387
Class MethodInjectionTestsMixin A mixin that runs HTTP method injection tests. Define MethodInjectionTestsMixin.attemptRequestWithMaliciousMethod in a twisted.trial.unittest.SynchronousTestCase subclass to test how HTTP client code behaves when presented with malicious HTTP methods.
Class URIInjectionTestsMixin A mixin that runs HTTP URI injection tests. Define MethodInjectionTestsMixin.attemptRequestWithMaliciousURI in a twisted.trial.unittest.SynchronousTestCase subclass to test how HTTP client code behaves when presented with malicious HTTP URIs.
Constant NONASCII Undocumented
Constant UNPRINTABLE_ASCII Undocumented
NONASCII = (source)

Undocumented

Value
frozenset(range(128, 256))
UNPRINTABLE_ASCII = (source)

Undocumented

Value
frozenset(range(0, 128))-frozenset(bytearray(string.printable, 'ascii'))