X7ROOT File Manager
Current Path:
/opt/alt/python33/lib64/python3.3/idlelib/idle_test
opt
/
alt
/
python33
/
lib64
/
python3.3
/
idlelib
/
idle_test
/
??
..
??
README.txt
(4.49 KB)
??
__init__.py
(356 B)
??
__pycache__
??
mock_idle.py
(764 B)
??
mock_tk.py
(10.39 KB)
??
test_calltips.py
(6.18 KB)
??
test_config_name.py
(2.34 KB)
??
test_delegator.py
(1.26 KB)
??
test_formatparagraph.py
(13.97 KB)
??
test_grep.py
(2.61 KB)
??
test_idlehistory.py
(5.34 KB)
??
test_pathbrowser.py
(344 B)
??
test_rstrip.py
(1.58 KB)
??
test_searchengine.py
(11.23 KB)
??
test_text.py
(6.6 KB)
??
test_warning.py
(2.69 KB)
Editing: mock_idle.py
'''Mock classes that imitate idlelib modules or classes. Attributes and methods will be added as needed for tests. ''' from idlelib.idle_test.mock_tk import Text class Editor: '''Minimally imitate EditorWindow.EditorWindow class. ''' def __init__(self, flist=None, filename=None, key=None, root=None): self.text = Text() self.undo = UndoDelegator() def get_selection_indices(self): first = self.text.index('1.0') last = self.text.index('end') return first, last class UndoDelegator: '''Minimally imitate UndoDelegator,UndoDelegator class. ''' # A real undo block is only needed for user interaction. def undo_block_start(*args): pass def undo_block_stop(*args): pass
Upload File
Create Folder