def METHOD_NAME():
    with override_global_config({"_appsec_enabled": True}):
        with _asm_request_context.asm_request_context_manager(_TEST_IP, _TEST_HEADERS, True, lambda: True):
            assert _asm_request_context.get_ip() == _TEST_IP
            assert _asm_request_context.get_headers() == _TEST_HEADERS
            assert _asm_request_context.get_headers_case_sensitive()
            assert _asm_request_context.get_value("callbacks", "block") is not None
        assert _asm_request_context.get_ip() is None
        assert _asm_request_context.get_headers() == {}
        assert _asm_request_context.get_value("callbacks", "block") is None
        assert not _asm_request_context.get_headers_case_sensitive()
        with _asm_request_context.asm_request_context_manager(_TEST_IP, _TEST_HEADERS):
            assert not _asm_request_context.get_headers_case_sensitive()
            assert not _asm_request_context.block_request()