Tests_REST_Server S

Total Complexity 30
Dependencies 5
Dependents 0
Total lines 601
Lines of code 423
Logical lines of code 228
Comment lines 50
Methods 29
Properties 0

Methods 29

Method Rating Maintainability Complexity Lines of code
test_get_index()
S
50 1 30
test_get_namespace_index()
S
52 1 27
embedded_response_callback()
S
62 2 11
test_envelope()
S
53 1 23
test_allow_header_send_only_permitted_methods()
S
56 1 19
test_allow_header_sent_with_multiple_methods()
S
56 1 18
test_link_embedding()
S
55 1 18
test_get_namespaces()
S
58 1 18
test_error_to_response_to_error()
S
56 1 17
test_link_embedding_error()
S
56 1 17
test_response_to_data_links()
S
58 1 16
test_default_param_is_overridden()
S
59 1 15
test_optional_param()
S
59 1 15
test_json_error_with_status()
S
59 1 15
test_default_param()
S
60 1 14
test_no_zero_param()
S
60 1 14
test_removing_links()
S
59 1 14
test_rest_route_capability_authorization()
S
60 1 13
test_allow_header_sent()
S
60 1 13
test_link_embedding_params()
S
59 1 13
test_removing_links_for_href()
S
60 1 13
test_rest_route_capability_authorization_fails()
S
62 1 11
test_error_to_response()
S
62 1 11
test_error_to_response_with_status()
S
62 1 11
setUp()
S
70 1 6
permission_denied()
S
78 1 3
test_rest_error()
S
65 1 9
test_link_embedding_self()
S
63 1 10
test_link_embedding_without_links()
S
65 1 9