ó zfc@s¢ddlZddlZddlZddlmZmZmZddl m Z edƒdZ de 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„Z d „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 configuretassertGreaterEqualtsett assertEqualtcgettassertIsInstancetstrt wantobjectstint(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.pyt test_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 RRRt assertIsNotRtassertNotEqualtcopyt assertNotIn(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__t classmethodR R'R)R+R,R3R6R<RARD(((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyR s     t__main__(tunittesttTkinterRttkFontR ttest.test_supportRRRttest_ttk.supportRRtTestCaseRt tests_guiRE(((s:/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_font.pyts    ]