class documentation

class TreqAPITests(TestCase): (source)

View In Hierarchy

Undocumented

Method test_cached_pool The first use of the module-level API populates the global connection pool, which is used for all subsequent requests.
Method test_custom_agent A custom Agent is used if specified.
Method test_custom_pool `treq.post()` accepts a *pool* argument to use for the request. The global pool is unaffected.
Method test_default_pool The module-level API uses the global connection pool by default.
Method test_post_json_with_data `treq.post()` warns that mixing *data* and *json* is deprecated.
Method test_request_invalid_param `treq.request()` warns that it ignores unknown keyword arguments, but this is deprecated.
def test_cached_pool(self): (source)

The first use of the module-level API populates the global connection pool, which is used for all subsequent requests.

def test_custom_agent(self): (source)

A custom Agent is used if specified.

def test_custom_pool(self): (source)

`treq.post()` accepts a *pool* argument to use for the request. The global pool is unaffected.

def test_default_pool(self): (source)

The module-level API uses the global connection pool by default.

def test_post_json_with_data(self): (source)

`treq.post()` warns that mixing *data* and *json* is deprecated. This test verifies that stacklevel is set appropriately when issuing the warning.

def test_request_invalid_param(self): (source)

`treq.request()` warns that it ignores unknown keyword arguments, but this is deprecated. This test verifies that stacklevel is set appropriately when issuing the warning.