ó ükWc@sĽdZddlZddlZddlmZmZddlmZedƒZdej fd„ƒYZ dej fd „ƒYZ d „Z e d krĄe ƒndS( s: Very minimal unittests for parts of the readline module. i˙˙˙˙N(t run_unittestt import_module(tassert_python_oktreadlinetTestHistoryManipulationcBs3eZdZejeedƒ 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 lines second lineiiis replaced line( RRt add_historyt assertEqualtget_history_itemtNonetreplace_history_itemtget_current_history_lengthtremove_history_item(tself((s(/usr/lib/python2.7/test/test_readline.pyttestHistoryUpdatess    (t__name__t __module__t__doc__tunittesttskipIfthasattrRR(((s(/usr/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/lib/python2.7/test/test_readline.pyt test_init/s (RRRRRt_READLINE_VERSIONRR(((s(/usr/lib/python2.7/test/test_readline.pyR-s cCstttƒdS(N(RRR(((s(/usr/lib/python2.7/test/test_readline.pyt test_main;st__main__(RtosRttest.test_supportRRttest.script_helperRRtTestCaseRRRR(((s(/usr/lib/python2.7/test/test_readline.pyts   !