Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/cinderclient/tests/unit/__pycache__/test_http.cpython-39.pyc
Ðазад
a t�h�4 � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlmZ dddd�d d dd d d�gd �gd�iZ e� ddd��Zejed�Z e� de �e �d��Zejed�Ze� ddd��Zejed�Ze� ddd��Zejed�Ze� ddd��Zejed�Ze� dddd�d��Zejed�Ze� ddd��Zejed�Zejejjd�Zejejjd�Zd(d d!�Zd)d"d#�Z d*d$d%�Z!G d&d'� d'ej"�Z#dS )+� N)�client)� exceptions)�utils�accessz2014-11-01T03:32:15-05:00ZFAKE_ID)�expires�idZvolumev2zhttp://localhost:8776/v2Z RegionOne)ZadminURL�regionZinternalURLZ publicURL)�typeZ endpoints)�tokenZserviceCatalog�� z{"hi": "there"})�status_code�text��return_value�� i� z[Errno 111] Connection refused� i� z8{"error": {"message": "FAILED!", "details": "DETAILS!"}}i� �1�1234)zRetry-Afterzx-compute-request-id)r �headersi� )Zside_effectc K s t jdd| i|��}|S )N)�username�password� project_id� auth_test�retries�r � HTTPClient�r �kwargs�cl� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/cinderclient/tests/unit/test_http.py� get_client_ s ��r! c K s0 t f d| i|��}d|_d|_tjdd�|_|S )Nr �http://example.comr r )r! �management_url� auth_token�mock�MockZget_service_urlr r r r �get_authed_clientf s r'