class documentation

class StubTreq: (source)

View In Hierarchy

A fake version of the treq module that can be used for testing that provides all the function calls exposed in :obj:`treq.__all__`.

Method __init__ Construct a client, and pass through client methods and/or treq.content functions.
Instance Variable flush Undocumented
Instance Variable _agent Undocumented
def __init__(self, resource): (source)

Construct a client, and pass through client methods and/or treq.content functions. :param resource: A :obj:`Resource` object that provides the fake responses

flush = (source)

Undocumented

_agent = (source)

Undocumented