a
    ù!f  ã                   @   s.   d dl Z G dd„ de jƒZG dd„ deƒZdS )é    Nc                   @   s$   e Zd Zdd„ Zdd„ Zdd„ ZdS )ÚTestConnectionc                 C   s   ddl m} |S )Nr   )Ú
Connection)Zgcloud.monitoring.connectionr   )Úselfr   © r   úb/var/www/html/python-backend/venv/lib/python3.9/site-packages/gcloud/monitoring/test_connection.pyÚ_getTargetClass   s    zTestConnection._getTargetClassc                 O   s   |   ¡ |i |¤ŽS ©N)r   )r   ÚargsÚkwargsr   r   r   Ú_makeOne   s    zTestConnection._makeOnec                 C   s*   t ƒ }|  |¡}|  |jj|  ¡ j¡ d S r   )Ú_Credentialsr   ÚassertEqualÚcredentialsÚ_scopesr   ZSCOPE)r   r   Ú
connectionr   r   r   Útest_constructor   s
    

ÿzTestConnection.test_constructorN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r      s   r   c                   @   s$   e Zd ZdZedd„ ƒZdd„ ZdS )r   Nc                   C   s   dS )NTr   r   r   r   r   Úcreate_scoped_required&   s    z#_Credentials.create_scoped_requiredc                 C   s
   || _ | S r   )r   )r   Úscoper   r   r   Úcreate_scoped*   s    z_Credentials.create_scoped)r   r   r   r   Ústaticmethodr   r   r   r   r   r   r   "   s   
r   )Z	unittest2ZTestCaser   Úobjectr   r   r   r   r   Ú<module>   s   