Classes | Functions | Variables
webtest::utils Namespace Reference

Classes

class  _RequestCookieAdapter
class  _ResponseCookieAdapter
class  NoDefault

Functions

def encode_params
def json_method
def make_pattern
def stringify

Variables

tuple entity_pattern = re.compile(r"&(\w+|#\d+|#[xX][a-fA-F0-9]+);")
tuple NoDefault = NoDefault()

Function Documentation

def webtest.utils.encode_params (   params,
  content_type 
)

Definition at line 58 of file utils.py.

def webtest.utils.json_method (   method)
Do a %(method)s request.  Very like the
:class:`~webtest.TestApp.%(lmethod)s` method.

``params`` are dumped to json and put in the body of the request.
Content-Type is set to ``application/json``.

Returns a :class:`webtest.TestResponse` object.

Definition at line 18 of file utils.py.

Find element pattern can be a regex or a callable.

Definition at line 79 of file utils.py.

def webtest.utils.stringify (   value)

Definition at line 46 of file utils.py.


Variable Documentation

tuple webtest::utils::entity_pattern = re.compile(r"&(\w+|#\d+|#[xX][a-fA-F0-9]+);")

Definition at line 55 of file utils.py.

Definition at line 15 of file utils.py.



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