Your IP : 3.146.176.191


Current Path : /usr/lib64/python2.7/lib-tk/test/test_tkinter/
Upload File :
Current File : //usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyo

�
zfc@s�ddlZddlZddlZddlmZmZmZddl	m
Z
ed�dZde
ejfd��YZ
e
fZedkr�ee�ndS(	i����N(trequirestrun_unittestt
gc_collect(tAbstractTkTesttguit
TkDefaultFonttFontTestcBsheZed��Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�ZRS(
cCswtjj|�y(tjd|jdtdt�|_Wn8tj	k
rrtjd|jdtdt
�|_nXdS(Ntroottnametexists(Rt
setUpClasst__func__tfonttFontRtfontnametTruettkintertTclErrortFalse(tcls((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyR

s
(cCsL|jj�}|jt|�ddddddh�xI|D]A}|j|jj|�||�|j|j|||�q>WxUdD]M}|j||t�|j|jj|�t�|j|j|t�q�W|jr�t	nt}xUdD]M}|j|||�|j|jj|�|�|j|j||�q�WdS(	Ntfamilytsizetweighttslantt	underlinet
overstrike(RRR(RRR(
Rt	configuretassertGreaterEqualtsettassertEqualtcgettassertIsInstancetstrtwantobjectstint(tselftoptionstkeytsizetype((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyttest_configures
 

cCs�d}y%tjd|jd|dt�}Wn5tjk
rbtjd|jd|dt�}nX|j|jd�|�~t	�dS(NuMS ゴシックRRR	(
RR
RRRRRRRR(R#Rtf((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyttest_unicode_family&s%%cCs|jj�}|jt|�ddddddh�x.|D]&}|j|jj|�||�q>Wx>dD]6}|j||t�|j|jj|�t�qoW|jr�tnt}x>dD]6}|j|||�|j|jj|�|�q�WdS(	NRRRRRR(RRR(RRR(	RtactualRRRRR R!R"(R#R$R%R&((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyttest_actual0s
$
 
cCs3|j|jjt�|jt|j�t�dS(N(RRRRR (R#((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyt	test_name>scCs�tjd|jdtdt�}tjd|jdtdt�}|j||�|j||�|j||j��|j|d�|j	|dg�dS(NRRR	i(
RR
RRRtassertIsNotRtassertNotEqualtcopytassertNotIn(R#tfont1tfont2((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyttest_eqBs!!cCs |j|jjd�t�dS(Ntabc(RRtmeasureR"(R#((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyttest_measureKscCs�|jj�}|jt|�ddddh�x^|D]V}|j|jj|�||�|j||t�|j|jj|�t�q8WdS(Ntascenttdescentt	linespacetfixed(RtmetricsRRRRR"(R#R;R%((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyttest_metricsNs
 cCsgtj|j�}|j|t�|j|�x1|D])}|j|ttf�|j|�q6WdS(N(RtfamiliesRRttuplet
assertTrueR tunicode(R#R=R((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyt
test_familiesWs

cCswtj|j�}|j|t�|j|�x1|D])}|j|ttf�|j|�q6W|jt	|�dS(N(
RtnamesRRR>R?R R@tassertInR(R#RBR((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyt
test_names_s

(
t__name__t
__module__tclassmethodR
R'R)R+R,R3R6R<RARD(((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyRs		
								t__main__(tunittesttTkinterRttkFontRttest.test_supportRRRttest_ttk.supportRRtTestCaseRt	tests_guiRE(((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyt<module>s
]	

?>