File: //lib/python3/dist-packages/twisted/conch/test/__pycache__/test_manhole_tap.cpython-38.pyc
U
W[� � @ s� d Z zddlZW n ek
r( dZY nX zddlZW n ek
rN dZY nX erherhddlmZmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ ddlmZ dd lmZ dd
lmZ G dd� de�ZdS )
z)
Tests for L{twisted.conch.manhole_tap}.
� N)�manhole_tap�manhole_ssh)�StreamServerEndpointService)�MultiService)�error)�UsernamePassword)�telnet)�usage)�TestCasec @ sL e Zd ZdZesdZesdZdZdd� Zdd� Z d d
� Z
dd� Zd
d� ZdS )�MakeServiceTestsz/
Tests for L{manhole_tap.makeService}.
zcan't run without cryptographyzCannot run without PyASN1)s iamusers thisispasswordc C sB | � � | _t| jd��}|�d�| j�� W 5 Q R X t�� | _dS )z8
Create a passwd-like file with a user.
�wb� :N) �mktemp�filename�open�write�join�usernamePasswordr �Options�options)�self�f� r �E/usr/lib/python3/dist-packages/twisted/conch/test/test_manhole_tap.py�setUp0 s
zMakeServiceTests.setUpc C s>