class documentation

class RequestSequenceTests(TestCase): (source)

View In Hierarchy

Tests for :obj:`RequestSequence`.

Method setUp Set up a way to report failures asynchronously.
Method test_async_failures_logged When no `async_failure_reporter` is passed async failures are logged by default.
Method test_consume_context_manager_fails_on_remaining_requests If the `consume` context manager is used, if there are any remaining expecting requests, the test case will be failed.
Method test_mismatched_request_causes_failure If a request is made that is not expected as the next request, causes a failure.
Method test_unexpected_number_of_request_causes_failure If there are no more expected requests, making a request causes a failure.
Method test_works_with_mock_any :obj:`mock.ANY` can be used with the request parameters.
Instance Variable async_failures Undocumented
def setUp(self): (source)

Set up a way to report failures asynchronously.

def test_async_failures_logged(self): (source)

When no `async_failure_reporter` is passed async failures are logged by default.

def test_consume_context_manager_fails_on_remaining_requests(self): (source)

If the `consume` context manager is used, if there are any remaining expecting requests, the test case will be failed.

def test_mismatched_request_causes_failure(self): (source)

If a request is made that is not expected as the next request, causes a failure.

def test_unexpected_number_of_request_causes_failure(self): (source)

If there are no more expected requests, making a request causes a failure.

def test_works_with_mock_any(self): (source)

:obj:`mock.ANY` can be used with the request parameters.

async_failures: list = (source)

Undocumented