File: //lib/python3/dist-packages/twisted/conch/test/__pycache__/test_default.cpython-310.pyc
o
�bD- � @ s2 d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z ddl
mZ ddlm
Z
dd lmZ dd
lmZ ddlmZ dZd
Ze
d�rge
d�rgddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ndZdZeZ e�!� rudZdZej"�#� s~dZdZej$�#� s�dZdZG dd� de�Z%G dd� de�Z&dS )z,
Tests for L{twisted.conch.client.default}.
� N)�skipIf)�
ConchError)�keydata)�nativeString)�FilePath)�
requireModule)�platform)�StringTransport)�TestCaseF� �cryptography�pyasn1)�default)�SSHAgentClient)�SSHUserAuthClient)�ConchOptions)�KeyTzBcryptography and PyASN1 required for twisted.conch.client.default.zlgenericAnswers and getPassword does not work on Windows. Should be fixed as part of fixing bug 6409 and 6410z#sys.stdin is not an interactive ttyz$sys.stdout is not an interactive ttyc @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� Zee
e�dd� �Zee
e�dd� �Zee
e�dd� �Zee
e�dd� �ZdS )�SSHUserAuthClientTestszm
Tests for L{SSHUserAuthClient}.
@type rsaPublic: L{Key}
@ivar rsaPublic: A public RSA key.
c C sZ t �tj�| _t| �� �| _| j�� | j� d�| _
| j
�tj� | j� d��tj� d S )N�id_rsa�
id_rsa.pub)
r �
fromStringr �publicRSA_openssh� rsaPublicr �mktemp�tmpdir�makedirs�child�rsaFile�
setContent�privateRSA_openssh��self� r"