Your IP : 216.73.216.213


Current Path : /proc/242857/root/opt/alt/python34/lib64/python3.4/test/__pycache__/
Upload File :
Current File : //proc/242857/root/opt/alt/python34/lib64/python3.4/test/__pycache__/test_readline.cpython-34.pyc

�
h fv	�@s�dZddlZddlZddlmZmZddlmZed�ZGdd�dej	�Z
Gdd	�d	ej	�Zd
d�Ze
dkr�e�ndS)
z:
Very minimal unittests for parts of the readline module.
�N)�run_unittest�
import_module)�assert_python_ok�readlinec@s=eZdZdZejeed�d�dd��ZdS)�TestHistoryManipulationz�
    These tests were added to check that the libedit emulation on OSX and the
    "real" readline have the same interface for history manipulation. That's
    why the tests cover only a small subset of the interface.
    �
clear_historyzXThe history update test cannot be run because the clear_history method is not available.cCs9tj�tjd�tjd�|jtjd�d�|jtjd�d�|jtjd�d�tjdd�|jtjd�d�|jtjd�d�|jtjd�d�|jtj�d�tjd�|jtjd�d�|jtjd�d�|jtj�d�dS)Nz
first linezsecond liner��z
replaced line)rrZadd_history�assertEqualZget_history_itemZreplace_history_item�get_current_history_lengthZremove_history_item)�self�r
�7/opt/alt/python34/lib64/python3.4/test/test_readline.py�testHistoryUpdatess



z*TestHistoryManipulation.testHistoryUpdatesN)	�__name__�
__module__�__qualname__�__doc__�unittestZ
skipUnless�hasattrrrr
r
r
rrsrc@sFeZdZejejdko-dejkd�dd��ZdS)�TestReadlinei�libeditz%not supported in this library versioncCs2tdddd�\}}}|j|d�dS)Nz-czimport readlineZTERMzxterm-256color�)rr
)r�rc�stdout�stderrr
r
r�	test_init0szTestReadline.test_initN)	rrrrZskipIfrZ_READLINE_VERSIONrrr
r
r
rr.srcCsttt�dS)N)rrrr
r
r
r�	test_main<sr�__main__)r�osrZtest.supportrrZtest.script_helperrrZTestCaserrrrr
r
r
r�<module>s"