Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/libcloud/test/compute/__pycache__/test_abiquo.cpython-39.pyc
Ðазад
a q�h�Q � @ s� d Z ddlZddlmZ ddlmZ ddlmZ ddlmZm Z ddl mZmZ ddl mZmZ dd lmZ dd lmZmZ ddlmZ G dd � d eej�ZG dd� de�Zedkr�e�e�� � dS )z Abiquo Test Suite � N)�ET)�httplib)�AbiquoNodeDriver)�ForbiddenError�get_href)�InvalidCredsError� LibcloudError)�NodeLocation� NodeImage)� TestCaseMixin)�MockHttp�unittest)�ComputeFileFixturesc @ s� e Zd ZdZedd� �Zdd� Zdd� Zdd � Zd d� Z dd � Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd.d/� Zd0S )1�AbiquoNodeDriverTestz' Abiquo Node Driver test suite c C s t tj_tddd�| _dS )z6 Set up the driver with the main user �sonZgoku�http://dummy.host.com/apiN)�AbiquoMockHttpr � connectionCls� conn_class�driver)�cls� 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/test_abiquo.py� setUpClass% s �zAbiquoNodeDriverTest.setUpClassc C s | � ttddd� dS )z� Test the Unauthorized Exception is Controlled. Test, through the 'login' method, that a '401 Unauthorized' raises a 'InvalidCredsError' instead of the 'MalformedUrlException' r Zgotenr N)�assertRaisesr r ��selfr r r �test_unauthorized_controlled. s �z1AbiquoNodeDriverTest.test_unauthorized_controlledc C s&