Module Expr Str Import alias ImportFrom alias alias Assign NameStore Call NameLoad Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad Str Str decorator_list FunctionDef arguments args defaults body Expr Call NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
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.
 N/A unittest test.test_support run_unittest import_module N/A readline N/A import_module readline TestHistoryManipulation N/A N/A unittest TestCase N/A testHistoryUpdates N/A N/A self N/A N/A N/A N/A N/A readline clear_history N/A N/A N/A readline add_history first line N/A N/A N/A readline add_history second line N/A N/A N/A self assertEqual N/A N/A readline get_history_item 0 None N/A N/A N/A self assertEqual N/A N/A readline get_history_item 1 first line N/A N/A N/A self assertEqual N/A N/A readline get_history_item 2 second line N/A N/A N/A readline replace_history_item 0 replaced line N/A N/A N/A self assertEqual N/A N/A readline get_history_item 0 None N/A N/A N/A self assertEqual N/A N/A readline get_history_item 1 replaced line N/A N/A N/A self assertEqual N/A N/A readline get_history_item 2 second line N/A N/A N/A self assertEqual N/A N/A readline get_current_history_length 2 N/A N/A N/A readline remove_history_item 0 N/A N/A N/A self assertEqual N/A N/A readline get_history_item 0 None N/A N/A N/A self assertEqual N/A N/A readline get_history_item 1 second line N/A N/A N/A self assertEqual N/A N/A readline get_current_history_length 1 N/A N/A N/A unittest skipIf N/A N/A hasattr readline clear_history The history update test cannot be run because the clear_history method is not available. N/A test_main N/A N/A N/A N/A N/A N/A run_unittest TestHistoryManipulation N/A N/A N/A __name__ __main__ N/A N/A N/A test_main