keystone.tests.unit.server package

Submodules

keystone.tests.unit.server.test_keystone_flask module

class keystone.tests.unit.server.test_keystone_flask.TestKeystoneFlaskCommon(*args, **kwargs)[source]

Bases: keystone.tests.unit.rest.RestfulTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_HTTP_OPTIONS_is_unenforced()[source]
test_after_request_functions()[source]
test_after_request_functions_must_be_added()[source]
test_api_url_prefix()[source]
test_before_request_functions()[source]
test_before_request_functions_must_be_added()[source]
test_blueprint_url_prefix()[source]
test_build_restful_api_no_prefix()[source]
test_cannot_add_after_request_functions_twice()[source]
test_cannot_add_before_request_functions_twice()[source]
test_construct_resource_map()[source]
test_correct_json_home_document()[source]
test_instantiate_and_register_to_app()[source]
test_json_body_before_req_func_invalid_json()[source]
test_json_body_before_req_func_no_content_type()[source]
test_json_body_before_req_func_unrecognized_conten_type_no_body()[source]
test_json_body_before_req_func_unrecognized_content_type()[source]
test_json_body_before_req_func_valid_json()[source]
test_mapped_resource_routes()[source]
test_normalize_domain_id_extracts_domain_id_if_needed()[source]
test_resource_collection_key_raises_exception_if_unset()[source]
test_resource_member_key_raises_exception_if_unset()[source]
test_unenforced_api_decorator()[source]
class keystone.tests.unit.server.test_keystone_flask.TestKeystoneFlaskUnrouted404(*args, **kwargs)[source]

Bases: keystone.tests.unit.rest.RestfulTestCase

setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_unrouted_path_is_not_jsonified_404()[source]

Module contents