Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/libcloud/test/compute/__pycache__/__init__.cpython-39.pyc
Ðазад
a q�h� � @ sN d dl mZmZmZmZ d dlmZ G dd� d�ZedkrJd dl Z e � � dS )� )�Node� NodeImage�NodeLocation� StorageVolume)�get_pricingc @ s` e Zd ZdZdZdZdd� Zdd� Zdd� Zd d � Z dd� Z d d� Zdd� Zdd� Z dd� ZdS )� TestCaseMixinTFc C s8 | j �� }| �t|t�� |D ]}| �t|t�� qd S �N)�driver� list_nodes� assertTrue� isinstance�listr )�self�nodes�node� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/libcloud/test/compute/__init__.py�test_list_nodes_response s z&TestCaseMixin.test_list_nodes_responsec C s� | j �� }|d }| �t|t�� | �|jd u p:t|jt�� | �|jd u pVt|jt�� | �|jd u prt|jt�� | �|j d u p�t|j t �p�t|j t�� d S �Nr )r � list_sizesr r r �ram�intZdisk� bandwidthZprice�float)r �sizes�sizer r r �test_list_sizes_response s � � �z&TestCaseMixin.test_list_sizes_responsec C s8 | j �� }| �t|t�� |D ]}| �t|t�� qd S r )r �list_imagesr r r r )r Zimages�imager r r �test_list_images_response- s z'TestCaseMixin.test_list_images_responsec C sB | j s d S | j�� }| �t|t�� |D ]}| �t|t�� q(d S r )�should_list_volumesr Zlist_volumesr r r r )r Zvolumes�volumer r r �test_list_volumes_response3 s z(TestCaseMixin.test_list_volumes_responsec C sB | j s d S | j�� }| �t|t�� |D ]}| �t|t�� q(d S r )�should_list_locationsr Zlist_locationsr r r r )r � locationsZdcr r r �test_list_locations_response<