Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/libcloud/test/__pycache__/test_pricing.cpython-39.pyc
Ðазад
a q�h � @ sb d dl Zd dlZd dlZd dlZej�ej�e �d�Z G dd� dej�Ze dkr^e�e�� � dS )� Nzpricing_test.jsonc @ sL e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dS )�PricingTestCasec C s� | � dtjjd v � tjjddtd�}| �|d d� | �|d d� | �tjjd d d d� | �tjjd d d d� d S )N�foo�compute��driver_type�driver_nameZpricing_file_path�1g �?�2g @)�assertFalse�libcloud�pricing�PRICING_DATA�get_pricing�PRICING_FILE_PATH�assertEqual)�selfr � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/libcloud/test/test_pricing.py�test_get_pricing_success s �z(PricingTestCase.test_get_pricing_successc C s8 zt jjdddd� W n ty( Y n0 | �d� d S )Nr �bar�inexistent.jsonr zCInvalid pricing file path provided, but an exception was not thrown)r r r �IOError�fail�r r r r �"test_get_pricing_invalid_file_path'