trustpoint.tests.test_views.test_logged_response

Tests for the LoggedHttpResponse class.

Classes

TestLoggedHttpResponse

Test cases for LoggedHttpResponse.

Module Contents

class trustpoint.tests.test_views.test_logged_response.TestLoggedHttpResponse(methodName='runTest')[source]

Bases: django.test.TestCase

Test cases for LoggedHttpResponse.

test_logged_response_success_status()[source]

Test LoggedHttpResponse with success status code.

Return type:

None

test_logged_response_error_status_string()[source]

Test LoggedHttpResponse with error status and string content.

Return type:

None

test_logged_response_error_status_bytes()[source]

Test LoggedHttpResponse with error status and bytes content.

Return type:

None

test_logged_response_threshold()[source]

Test LoggedHttpResponse at threshold status.

Return type:

None

test_logged_response_below_threshold()[source]

Test LoggedHttpResponse below threshold status.

Return type:

None

test_logged_response_no_status()[source]

Test LoggedHttpResponse without explicit status.

Return type:

None

test_logged_response_empty_content()[source]

Test LoggedHttpResponse with empty content.

Return type:

None