Current File : //opt/imh-python/lib/python2.7/test/test_readline.pyo
�
��Wc@s�dZddlZddlZddlmZmZddlmZed�Zdej	fd��YZ
dej	fd	��YZd
�Ze
dkr�e�ndS(s:
Very minimal unittests for parts of the readline module.
i����N(trun_unittestt
import_module(tassert_python_oktreadlinetTestHistoryManipulationcBs2eZdZejeed�d�d��ZRS(s�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.
    t
clear_historysXThe 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(Ns
first linessecond lineiiis
replaced line(	RRtadd_historytassertEqualtget_history_itemtNonetreplace_history_itemtget_current_history_lengthtremove_history_item(tself((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_readline.pyttestHistoryUpdatess



(t__name__t
__module__t__doc__tunittestt
skipUnlessthasattrRR(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_readline.pyRstTestReadlinecBs;eZejejdko'dejkd�d��ZRS(itlibedits%not supported in this library versioncCs2tdddd�\}}}|j|d�dS(Ns-csimport readlinetTERMsxterm-256colort(RR(R
trctstdouttstderr((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_readline.pyt	test_init/s(RRRtskipIfRt_READLINE_VERSIONRR(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_readline.pyR-scCsttt�dS(N(RRR(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_readline.pyt	test_main;st__main__(RtosRttest.test_supportRRttest.script_helperRRtTestCaseRRRR(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_readline.pyt<module>s!