Your IP : 216.73.216.213


Current Path : /opt/alt/python33/lib64/python3.3/test/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/test/__pycache__/test_readline.cpython-33.pyc

�
��f�c@ssdZddlZddlmZmZed�ZGdd�dej�Zdd�Ze	d	kroe�ndS(
u
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.
iN(urun_unittestu
import_moduleureadlinecBs<|EeZdZejeed�d�dd��ZdS(uTestHistoryManipulationu
clear_historyuXThe 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(Nu
first lineusecond lineiiiu
replaced line(	ureadlineu
clear_historyuadd_historyuassertEqualuget_history_itemuNoneureplace_history_itemuget_current_history_lengthuremove_history_item(uself((u7/opt/alt/python33/lib64/python3.3/test/test_readline.pyutestHistoryUpdatess



u*TestHistoryManipulation.testHistoryUpdatesN(u__name__u
__module__u__qualname__uunittestuskipIfuhasattrureadlineutestHistoryUpdates(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_readline.pyuTestHistoryManipulationsuTestHistoryManipulationcCstt�dS(N(urun_unittestuTestHistoryManipulation(((u7/opt/alt/python33/lib64/python3.3/test/test_readline.pyu	test_main+su	test_mainu__main__(
u__doc__uunittestutest.supporturun_unittestu
import_moduleureadlineuTestCaseuTestHistoryManipulationu	test_mainu__name__(((u7/opt/alt/python33/lib64/python3.3/test/test_readline.pyu<module>s