%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_readline.pyc |
ó Nêáac @ s¥ d Z d d l Z d d l Z d d l m Z m Z d d l m Z e d ƒ Z d e j f d „ ƒ YZ d e j f d „ ƒ YZ d „ Z e d k r¡ e ƒ n d S( s: Very minimal unittests for parts of the readline module. iÿÿÿÿN( t run_unittestt import_module( t assert_python_okt readlinet TestHistoryManipulationc B s2 e Z d Z e j e e d ƒ d ƒ d „ ƒ Z RS( 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_historysX The history update test cannot be run because the clear_history method is not available.c C s9 t j ƒ t j d ƒ t j d ƒ | j t j d ƒ d ƒ | j t j d ƒ d ƒ | j t j d ƒ d ƒ t j d d ƒ | j t j d ƒ d ƒ | j t j d ƒ d ƒ | j t j d ƒ d ƒ | j t j ƒ d ƒ t j d ƒ | j t j d ƒ d ƒ | j t j d ƒ d ƒ | j t j ƒ d ƒ d S( Ns first lines second linei i i s replaced line( R R t add_historyt assertEqualt get_history_itemt Nonet replace_history_itemt get_current_history_lengtht remove_history_item( t self( ( s. /usr/local/lib/python2.7/test/test_readline.pyt testHistoryUpdates s ( t __name__t __module__t __doc__t unittestt skipUnlesst hasattrR R ( ( ( s. /usr/local/lib/python2.7/test/test_readline.pyR s t TestReadlinec B s; e Z e j e j d k o' d e j k d ƒ d „ ƒ Z RS( i t libedits% not supported in this library versionc C s2 t d d d d ƒ\ } } } | j | d ƒ d S( Ns -cs import readlinet TERMs xterm-256colort ( R R ( R t rct stdoutt stderr( ( s. /usr/local/lib/python2.7/test/test_readline.pyt test_init/ s ( R R R t skipIfR t _READLINE_VERSIONR R ( ( ( s. /usr/local/lib/python2.7/test/test_readline.pyR - s c C s t t t ƒ d S( N( R R R ( ( ( s. /usr/local/lib/python2.7/test/test_readline.pyt test_main; s t __main__( R t osR t test.test_supportR R t test.script_helperR R t TestCaseR R R R ( ( ( s. /usr/local/lib/python2.7/test/test_readline.pyt <module> s !