Classes | Functions | Variables
webtest::lint Namespace Reference

Classes

class  ErrorWrapper
class  InputWrapper
class  IteratorWrapper
class  WriteWrapper
class  WSGIWarning

Functions

def _assert_latin1_py3
def check_content_type
def check_environ
def check_errors
def check_exc_info
def check_headers
def check_input
def check_iterator
def check_status
def middleware
def to_string

Variables

list __all__ = ['middleware']
tuple bad_header_value_re = re.compile(r'[\000-\037]')
tuple header_re = re.compile(r'^[a-zA-Z][a-zA-Z0-9\-_]*$')
tuple METADATA_TYPE = PY3and(str, binary_type)
tuple SLASH = str('/')
tuple valid_methods

Function Documentation

def webtest.lint._assert_latin1_py3 (   string,
  message 
) [private]

Definition at line 415 of file lint.py.

def webtest.lint.check_content_type (   status,
  headers 
)

Definition at line 459 of file lint.py.

def webtest.lint.check_environ (   environ)

Definition at line 315 of file lint.py.

def webtest.lint.check_errors (   wsgi_errors)

Definition at line 387 of file lint.py.

def webtest.lint.check_exc_info (   exc_info)

Definition at line 488 of file lint.py.

def webtest.lint.check_headers (   headers)

Definition at line 423 of file lint.py.

def webtest.lint.check_input (   wsgi_input)

Definition at line 380 of file lint.py.

def webtest.lint.check_iterator (   iterator)

Definition at line 494 of file lint.py.

def webtest.lint.check_status (   status)

Definition at line 394 of file lint.py.

def webtest.lint.middleware (   application,
  global_conf = None 
)
When applied between a WSGI server and a WSGI application, this
middleware will check for WSGI compliancy on a number of levels.
This middleware does not modify the request or response in any
way, but will throw an AssertionError if anything seems off
(except for a failure to close the application iterator, which
will be printed to stderr -- there's no way to throw an exception
at that point).

Definition at line 153 of file lint.py.

def webtest.lint.to_string (   value)

Definition at line 140 of file lint.py.


Variable Documentation

Definition at line 503 of file lint.py.

tuple webtest::lint::bad_header_value_re = re.compile(r'[\000-\037]')

Definition at line 126 of file lint.py.

tuple webtest::lint::header_re = re.compile(r'^[a-zA-Z][a-zA-Z0-9\-_]*$')

Definition at line 125 of file lint.py.

tuple webtest::lint::METADATA_TYPE = PY3and(str, binary_type)

Definition at line 133 of file lint.py.

tuple webtest::lint::SLASH = str('/')

Definition at line 137 of file lint.py.

Initial value:
00001 (
00002     'GET', 'HEAD', 'POST', 'OPTIONS', 'PUT', 'DELETE',
00003     'TRACE', 'PATCH',
00004 )

Definition at line 128 of file lint.py.



webtest
Author(s): AlexV
autogenerated on Sat Jun 8 2019 20:32:08