Terarea  2
The automation project
Loading...
Searching...
No Matches
test_http_codes Namespace Reference

Functions

int _get_status (Response data)
 
None test_send_continue ()
 
None test_switching_protocols ()
 
None test_processing ()
 
None test_early_hints ()
 
None test_response_is_stale ()
 
None test_success ()
 
None test_created ()
 
None test_accepted ()
 
None test_non_authoritative_information ()
 
None test_no_content ()
 
None test_reset_content ()
 
None test_partial_content ()
 
None test_multi_status ()
 
None test_already_reported ()
 
None test_im_used ()
 
None test_multiple_choices ()
 
None test_moved_permanently ()
 
None test_found ()
 
None test_see_other ()
 
None test_not_modified ()
 
None test_use_proxy ()
 
None test_switch_proxy ()
 
None test_temporary_redirect ()
 
None test_permanent_redirect ()
 
None test_bad_request ()
 
None test_unauthorized ()
 
None test_payment_required ()
 
None test_forbidden ()
 
None test_not_found ()
 
None test_method_not_allowed ()
 
None test_not_acceptable ()
 
None test_proxy_authentication_required ()
 
None test_request_timeout ()
 
None test_conflict ()
 
None test_gone ()
 
None test_length_required ()
 
None test_precondition_failed ()
 
None test_payload_too_large ()
 
None test_uri_too_long ()
 
None test_unsupported_media_type ()
 
None test_range_not_satisfiable ()
 
None test_expectation_failed ()
 
None test_im_a_teapot ()
 
None test_page_expired ()
 
None test_enhance_your_calm ()
 
None test_misdirected_request ()
 
None test_unprocessable_entity ()
 
None test_locked ()
 
None test_failed_dependency ()
 
None test_too_early ()
 
None test_upgrade_required ()
 
None test_precondition_required ()
 
None test_too_many_requests ()
 
None test_request_header_fields_too_large ()
 
None test_unavailable_for_legal_reasons ()
 
None test_invalid_token ()
 
None test_internal_server_error ()
 
None test_not_implemented ()
 
None test_bad_gateway ()
 
None test_service_unavailable ()
 
None test_gateway_timeout ()
 
None test_http_version_not_supported ()
 
None test_variant_also_negotiates ()
 
None test_insufficient_storage ()
 
None test_loop_detected ()
 
None test_bandwidth_limit_exceeded ()
 
None test_not_extended ()
 
None test_network_authentication_required ()
 

Detailed Description

_summary_
    File in charge of testing the http response codes.

Function Documentation

◆ _get_status()

int test_http_codes._get_status ( Response data)
protected
_summary_
    Get the generated status from the boilerplate.

Args:
    data (Response): _description_

Returns:
    int: _description_

Definition at line 15 of file test_http_codes.py.

◆ test_accepted()

None test_http_codes.test_accepted ( )
 accepted: 202 

Definition at line 70 of file test_http_codes.py.

◆ test_already_reported()

None test_http_codes.test_already_reported ( )
 already_reported: 208 

Definition at line 106 of file test_http_codes.py.

◆ test_bad_gateway()

None test_http_codes.test_bad_gateway ( )
 bad_gateway: 502 

Definition at line 376 of file test_http_codes.py.

◆ test_bad_request()

None test_http_codes.test_bad_request ( )
 bad_request: 400 

Definition at line 172 of file test_http_codes.py.

◆ test_bandwidth_limit_exceeded()

None test_http_codes.test_bandwidth_limit_exceeded ( )
 bandwidth_limit_exceeded: 509 

Definition at line 418 of file test_http_codes.py.

◆ test_conflict()

None test_http_codes.test_conflict ( )
 conflict: 409 

Definition at line 226 of file test_http_codes.py.

◆ test_created()

None test_http_codes.test_created ( )
 created: 201 

Definition at line 64 of file test_http_codes.py.

◆ test_early_hints()

None test_http_codes.test_early_hints ( )
 early_hints: 103 

Definition at line 46 of file test_http_codes.py.

◆ test_enhance_your_calm()

None test_http_codes.test_enhance_your_calm ( )
 enhance_your_calm: 420 

Definition at line 292 of file test_http_codes.py.

◆ test_expectation_failed()

None test_http_codes.test_expectation_failed ( )
 expectation_failed: 417 

Definition at line 274 of file test_http_codes.py.

◆ test_failed_dependency()

None test_http_codes.test_failed_dependency ( )
 failed_dependency: 424 

Definition at line 316 of file test_http_codes.py.

◆ test_forbidden()

None test_http_codes.test_forbidden ( )
 forbidden: 403 

Definition at line 190 of file test_http_codes.py.

◆ test_found()

None test_http_codes.test_found ( )
 found: 302 

Definition at line 130 of file test_http_codes.py.

◆ test_gateway_timeout()

None test_http_codes.test_gateway_timeout ( )
 gateway_timeout: 504 

Definition at line 388 of file test_http_codes.py.

◆ test_gone()

None test_http_codes.test_gone ( )
 gone: 410 

Definition at line 232 of file test_http_codes.py.

◆ test_http_version_not_supported()

None test_http_codes.test_http_version_not_supported ( )
 http_version_not_supported: 505 

Definition at line 394 of file test_http_codes.py.

◆ test_im_a_teapot()

None test_http_codes.test_im_a_teapot ( )
 im_a_teapot: 418 

Definition at line 280 of file test_http_codes.py.

◆ test_im_used()

None test_http_codes.test_im_used ( )
 im_used: 226 

Definition at line 112 of file test_http_codes.py.

◆ test_insufficient_storage()

None test_http_codes.test_insufficient_storage ( )
 insufficient_storage: 507 

Definition at line 406 of file test_http_codes.py.

◆ test_internal_server_error()

None test_http_codes.test_internal_server_error ( )
 internal_server_error: 500 

Definition at line 364 of file test_http_codes.py.

◆ test_invalid_token()

None test_http_codes.test_invalid_token ( )
 invalid_token: 498 

Definition at line 358 of file test_http_codes.py.

◆ test_length_required()

None test_http_codes.test_length_required ( )
 length_required: 411 

Definition at line 238 of file test_http_codes.py.

◆ test_locked()

None test_http_codes.test_locked ( )
 locked: 423 

Definition at line 310 of file test_http_codes.py.

◆ test_loop_detected()

None test_http_codes.test_loop_detected ( )
 loop_detected: 508 

Definition at line 412 of file test_http_codes.py.

◆ test_method_not_allowed()

None test_http_codes.test_method_not_allowed ( )
 method_not_allowed: 405 

Definition at line 202 of file test_http_codes.py.

◆ test_misdirected_request()

None test_http_codes.test_misdirected_request ( )
 misdirected_request: 421 

Definition at line 298 of file test_http_codes.py.

◆ test_moved_permanently()

None test_http_codes.test_moved_permanently ( )
 moved_permanently: 301 

Definition at line 124 of file test_http_codes.py.

◆ test_multi_status()

None test_http_codes.test_multi_status ( )
 multi_status: 207 

Definition at line 100 of file test_http_codes.py.

◆ test_multiple_choices()

None test_http_codes.test_multiple_choices ( )
 multiple_choices: 300 

Definition at line 118 of file test_http_codes.py.

◆ test_network_authentication_required()

None test_http_codes.test_network_authentication_required ( )
 network_authentication_required: 511 

Definition at line 430 of file test_http_codes.py.

◆ test_no_content()

None test_http_codes.test_no_content ( )
 no_content: 204 

Definition at line 82 of file test_http_codes.py.

◆ test_non_authoritative_information()

None test_http_codes.test_non_authoritative_information ( )
 non_authoritative_information: 203 

Definition at line 76 of file test_http_codes.py.

◆ test_not_acceptable()

None test_http_codes.test_not_acceptable ( )
 not_acceptable: 406 

Definition at line 208 of file test_http_codes.py.

◆ test_not_extended()

None test_http_codes.test_not_extended ( )
 not_extended: 510 

Definition at line 424 of file test_http_codes.py.

◆ test_not_found()

None test_http_codes.test_not_found ( )
 not_found: 404 

Definition at line 196 of file test_http_codes.py.

◆ test_not_implemented()

None test_http_codes.test_not_implemented ( )
 not_implemented: 501 

Definition at line 370 of file test_http_codes.py.

◆ test_not_modified()

None test_http_codes.test_not_modified ( )
 not_modified: 304 

Definition at line 142 of file test_http_codes.py.

◆ test_page_expired()

None test_http_codes.test_page_expired ( )
 page_expired: 419 

Definition at line 286 of file test_http_codes.py.

◆ test_partial_content()

None test_http_codes.test_partial_content ( )
 partial_content: 206 

Definition at line 94 of file test_http_codes.py.

◆ test_payload_too_large()

None test_http_codes.test_payload_too_large ( )
 payload_too_large: 413 

Definition at line 250 of file test_http_codes.py.

◆ test_payment_required()

None test_http_codes.test_payment_required ( )
 payment_required: 402 

Definition at line 184 of file test_http_codes.py.

◆ test_permanent_redirect()

None test_http_codes.test_permanent_redirect ( )
 permanent_redirect: 308 

Definition at line 166 of file test_http_codes.py.

◆ test_precondition_failed()

None test_http_codes.test_precondition_failed ( )
 precondition_failed: 412 

Definition at line 244 of file test_http_codes.py.

◆ test_precondition_required()

None test_http_codes.test_precondition_required ( )
 precondition_required: 428 

Definition at line 334 of file test_http_codes.py.

◆ test_processing()

None test_http_codes.test_processing ( )
 processing: 102 

Definition at line 40 of file test_http_codes.py.

◆ test_proxy_authentication_required()

None test_http_codes.test_proxy_authentication_required ( )
 proxy_authentication_required: 407 

Definition at line 214 of file test_http_codes.py.

◆ test_range_not_satisfiable()

None test_http_codes.test_range_not_satisfiable ( )
 range_not_satisfiable: 416 

Definition at line 268 of file test_http_codes.py.

◆ test_request_header_fields_too_large()

None test_http_codes.test_request_header_fields_too_large ( )
 request_header_fields_too_large: 431 

Definition at line 346 of file test_http_codes.py.

◆ test_request_timeout()

None test_http_codes.test_request_timeout ( )
 request_timeout: 408 

Definition at line 220 of file test_http_codes.py.

◆ test_reset_content()

None test_http_codes.test_reset_content ( )
 reset_content: 205 

Definition at line 88 of file test_http_codes.py.

◆ test_response_is_stale()

None test_http_codes.test_response_is_stale ( )
 response_is_stale: 110 

Definition at line 52 of file test_http_codes.py.

◆ test_see_other()

None test_http_codes.test_see_other ( )
 see_other: 303 

Definition at line 136 of file test_http_codes.py.

◆ test_send_continue()

None test_http_codes.test_send_continue ( )
 send_continue: 100 

Definition at line 28 of file test_http_codes.py.

◆ test_service_unavailable()

None test_http_codes.test_service_unavailable ( )
 service_unavailable: 503 

Definition at line 382 of file test_http_codes.py.

◆ test_success()

None test_http_codes.test_success ( )
 success: 200 

Definition at line 58 of file test_http_codes.py.

◆ test_switch_proxy()

None test_http_codes.test_switch_proxy ( )
 switch_proxy: 306 

Definition at line 154 of file test_http_codes.py.

◆ test_switching_protocols()

None test_http_codes.test_switching_protocols ( )
 switching_protocols: 101 

Definition at line 34 of file test_http_codes.py.

◆ test_temporary_redirect()

None test_http_codes.test_temporary_redirect ( )
 temporary_redirect: 307 

Definition at line 160 of file test_http_codes.py.

◆ test_too_early()

None test_http_codes.test_too_early ( )
 too_early: 425 

Definition at line 322 of file test_http_codes.py.

◆ test_too_many_requests()

None test_http_codes.test_too_many_requests ( )
 too_many_requests: 429 

Definition at line 340 of file test_http_codes.py.

◆ test_unauthorized()

None test_http_codes.test_unauthorized ( )
 unauthorized: 401 

Definition at line 178 of file test_http_codes.py.

◆ test_unavailable_for_legal_reasons()

None test_http_codes.test_unavailable_for_legal_reasons ( )
 unavailable_for_legal_reasons: 451 

Definition at line 352 of file test_http_codes.py.

◆ test_unprocessable_entity()

None test_http_codes.test_unprocessable_entity ( )
 unprocessable_entity: 422 

Definition at line 304 of file test_http_codes.py.

◆ test_unsupported_media_type()

None test_http_codes.test_unsupported_media_type ( )
 unsupported_media_type: 415 

Definition at line 262 of file test_http_codes.py.

◆ test_upgrade_required()

None test_http_codes.test_upgrade_required ( )
 upgrade_required: 426 

Definition at line 328 of file test_http_codes.py.

◆ test_uri_too_long()

None test_http_codes.test_uri_too_long ( )
 uri_too_long: 414 

Definition at line 256 of file test_http_codes.py.

◆ test_use_proxy()

None test_http_codes.test_use_proxy ( )
 use_proxy: 305 

Definition at line 148 of file test_http_codes.py.

◆ test_variant_also_negotiates()

None test_http_codes.test_variant_also_negotiates ( )
 variant_also_negotiates: 506 

Definition at line 400 of file test_http_codes.py.