ó {G_Tc@spdZddlZddlmZmZedƒZdejfd„ƒYZd„Ze dkrleƒndS( s Very minimal unittests for parts of the readline module. 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. iÿÿÿÿN(t run_unittestt import_moduletreadlinetTestHistoryManipulationcBs-eZejeedƒ dƒd„ƒZRS(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/local/lib/python2.7/test/test_readline.pyttestHistoryUpdatess    (t__name__t __module__tunittesttskipIfthasattrRR (((s./usr/local/lib/python2.7/test/test_readline.pyRscCsttƒdS(N(RR(((s./usr/local/lib/python2.7/test/test_readline.pyt test_main+st__main__( t__doc__Rttest.test_supportRRRtTestCaseRRR(((s./usr/local/lib/python2.7/test/test_readline.pyts