ok

Mini Shell

Direktori : /proc/thread-self/root/proc/thread-self/root/lib64/python2.7/idlelib/idle_test/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/lib64/python2.7/idlelib/idle_test/test_editmenu.pyo

�
{fc@szdZddlmZddlZddlZddlmZdejfd��YZ	e
dkrvejdd	�ndS(
sTTest (selected) IDLE Edit menu items.

Edit modules have their own test files files
i����(trequiresN(tPyShellt	PasteTestcBsbeZdZed��Zed��Zd�Zd�Zd�Zd�Z	d�Z
d�ZRS(	seTest pasting into widgets that allow pasting.

    On X11, replacing selections requires tk fix.
    cCs�td�tj�|_}|j�tj|�tj|�|_tj	|�|_
tj|�|_|j
�|jd�dS(Ntguittwo(RttktTktroottwithdrawRt
fix_x11_pastetTextttexttEntrytentrytSpinboxtspintclipboard_cleartclipboard_append(tclsR((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt
setUpClasss



cCsP|`|`|`|jj�|jj�|jj�|jj�|`dS(N(RR
RRRtupdate_idletaskstupdatetdestroy(R((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt
tearDownClasss



cCse|j}d\}}|jdd�|jdd|�|jd�|j|jdd�|�dS(	s+Test pasting into text without a selection.tsonetwo
s1.0tendtones	<<Paste>>N(Rsonetwo
(Rtdeletetinserttevent_generatetassertEqualtget(tselfRttagtans((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_text_no_selection&s	
cCse|j}d\}}|jdd�|jdd|�|jd�|j|jdd�|�dS(	s(Test pasting into text with a selection.tselstwo
s1.0RRs	<<Paste>>N(R$stwo
(RRRRRR(R RR!R"((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_text_selection/s	
cCsl|j}d\}}|jdd�|jdd�|jd|�|jd�|j|j�|�dS(s/Test pasting into an entry without a selection.itonetwoRRs	<<Paste>>N(iR&(R
RRtselect_rangeRRR(R R
RR"((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_entry_no_selection8s	
cCsl|j}d\}}|jdd�|jdd�|jd|�|jd�|j|j�|�dS(s,Test pasting into an entry with a selection.RRiRs	<<Paste>>N(RR(R
RRR'RRR(R R
RR"((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_entry_selectionDs	
cCso|j}d\}}|jdd�|jdd�|jdd|�|jd�|j|j�|�dS(	s0Test pasting into a spinbox without a selection.iR&RRtranges	<<Paste>>N(iR&(RRRt	selectionRRR(R RRR"((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_spin_no_selectionNs	
cCso|j}d\}}|jdd�|jdd�|jdd|�|jd�|j|j�|�dS(	s-Test pasting into a spinbox with a selection.RRiRR*s	<<Paste>>N(RR(RRRR+RRR(R RRR"((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyttest_paste_spin_selectionYs	
(t__name__t
__module__t__doc__tclassmethodRRR#R%R(R)R,R-(((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyRs							
	t__main__t	verbosityi(R0ttest.test_supportRtTkinterRtunittesttidlelibRtTestCaseRR.tmain(((s7/usr/lib64/python2.7/idlelib/idle_test/test_editmenu.pyt<module>sY

Zerion Mini Shell 1.0