File: //usr/lib/python3/dist-packages/twisted/conch/test/__pycache__/test_manhole.cpython-38.pyc
U
��W[�4 � @ s d Z ddlZddlmZ ddlmZmZ ddlmZ ddl m
Z
mZmZm
Z
mZ ddlmZ ddlmZ d d
� Ze� ZG dd� dej�ZG d
d� dej�ZG dd� dej�ZG dd� d�ZG dd� de
eje�ZG dd� deeje�ZG dd� deeje�ZG dd� dej�ZdS )z%
Tests for L{twisted.conch.manhole}.
� N)�unittest)�error�defer)�StringTransport)�_TelnetMixin� _SSHMixin�_StdioMixin�stdio�ssh)�manhole)�insultsc C s. zdd W n t �� d d Y S X dS )z�
Return the string used by Python as the name for code objects which are
compiled from interactive input or at the top-level of modules.
� r ���� N)� traceback�
extract_stack� r r �A/usr/lib/python3/dist-packages/twisted/conch/test/test_manhole.py�determineDefaultFunctionName s r c @ s e Zd ZdZdd� ZdS )�ManholeInterpreterTestsz2
Tests for L{manhole.ManholeInterpreter}.
c C s2 t �d�}|j�ddg� |�� | �|j� dS )zR
L{ManholeInterpreter.resetBuffer} should empty the input buffer.
N�1�2)r ZManholeInterpreter�buffer�extendZresetBuffer�assertFalse)�self�interpreterr r r �test_resetBuffer* s
z(ManholeInterpreterTests.test_resetBufferN)�__name__�
__module__�__qualname__�__doc__r r r r r r &