Module Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr ListLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str BinOpAdd Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Return NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpBitAnd NameLoad UnaryOpInvert AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpBitAnd NameLoad AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest N/A mock pyface.qt QtCore QtGui pyface.qt.QtTest QTest pyface.ui.qt4.code_editor.code_widget CodeWidget AdvancedCodeWidget TestCodeWidget N/A N/A unittest TestCase N/A setupClass N/A N/A cls N/A N/A N/A N/A cls qapp N/A N/A N/A N/A QtGui QApplication instance N/A N/A QtGui QApplication N/A N/A classmethod tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self qapp processEvents N/A test_readonly_editor N/A N/A self N/A N/A N/A cw N/A CodeWidget None N/A text Some
Text N/A N/A N/A cw setPlainText text check N/A N/A typed expected N/A N/A N/A cursor N/A N/A cw textCursor N/A N/A N/A cursor setPosition 0 N/A N/A N/A cw setTextCursor cursor N/A N/A N/A QTest keyClicks cw typed N/A N/A N/A self assertEqual N/A N/A cw toPlainText expected N/A N/A N/A N/A cw setReadOnly True N/A N/A check More text N/A N/A N/A cw setReadOnly False N/A N/A check Extra N/A Extra text N/A test_readonly_replace_widget N/A N/A self N/A N/A N/A acw N/A AdvancedCodeWidget None N/A text Some
Text N/A N/A N/A N/A acw code setPlainText text N/A N/A N/A acw show N/A FindKey N/A N/A QtGui QKeySequence Ctrl+F N/A ReplaceKey N/A N/A QtGui QKeySequence Ctrl+H N/A patcher_find N/A N/A mock patch pyface.qt.QtGui.QKeySequence.Find FindKey N/A patcher_replace N/A N/A mock patch pyface.qt.QtGui.QKeySequence.Replace ReplaceKey N/A N/A N/A patcher_find start N/A N/A N/A patcher_replace start N/A N/A N/A self addCleanup N/A patcher_find stop N/A N/A N/A self addCleanup N/A patcher_replace stop click_key_seq N/A N/A widget key_seq N/A N/A N/A N/A N/A isinstance key_seq N/A QtGui QKeySequence N/A N/A key_seq N/A N/A QtGui QKeySequence key_seq N/A N/A N/A first_key N/A key_seq N/A 0 N/A N/A N/A IndexError N/A N/A False N/A key N/A N/A N/A QtCore Qt Key N/A first_key N/A N/A N/A QtCore Qt KeyboardModifierMask N/A modifier N/A N/A N/A QtCore Qt KeyboardModifier N/A first_key N/A N/A QtCore Qt KeyboardModifierMask N/A N/A N/A QTest keyClick widget key modifier N/A True N/A N/A N/A N/A N/A acw code setReadOnly True N/A N/A click_key_seq acw FindKey N/A N/A N/A N/A self assertTrue N/A N/A N/A acw find isVisible N/A N/A N/A N/A acw find hide N/A N/A N/A N/A acw code setReadOnly False N/A N/A click_key_seq acw FindKey N/A N/A N/A N/A self assertTrue N/A N/A N/A acw find isVisible N/A N/A N/A N/A acw find hide N/A N/A N/A N/A acw code setReadOnly True N/A N/A click_key_seq acw ReplaceKey N/A N/A N/A N/A self assertFalse N/A N/A N/A acw replace isVisible N/A N/A N/A N/A acw code setReadOnly False N/A N/A click_key_seq acw ReplaceKey N/A N/A N/A N/A self assertTrue N/A N/A N/A acw replace isVisible N/A N/A N/A N/A acw replace hide N/A N/A N/A self assertFalse N/A N/A N/A acw replace isVisible N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main