%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/lib-tk/test/test_tkinter/ |
Current File : //usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_images.pyc |
ó Mêáac @ sÙ d d l Z d d l Z d d l Z d d l j Z d d l m Z m Z e j d ƒ d e e j f d „ ƒ YZ d e e j f d „ ƒ YZ d e e j f d „ ƒ YZ e e e f Z e d k rÕ e j e Œ n d S( iÿÿÿÿN( t AbstractTkTestt requires_tclt guit MiscTestc B s e Z d „ Z d „ Z RS( c C sC | j j ƒ } | j | t ƒ | j d | ƒ | j d | ƒ d S( Nt photot bitmap( t roott image_typest assertIsInstancet tuplet assertIn( t selfR ( ( s@ /usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_images.pyt test_image_types s c C s# | j j ƒ } | j | t ƒ d S( N( R t image_namesR R ( R R ( ( s@ /usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_images.pyt test_image_names s ( t __name__t __module__R R ( ( ( s@ /usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_images.pyR s t BitmapImageTestc B sV e Z e d „ ƒ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( c C s, t j j | ƒ t j d d d ƒ| _ d S( Ns python.xbmt subdirt imghdrdata( R t setUpClasst __func__t supportt findfilet testfile( t cls( ( s@ /usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_images.pyR s c C s¾ t j d d | j d d d d d | j ƒ} | j t | ƒ d ƒ | j | j ƒ d ƒ | j | j ƒ d ƒ | j | j ƒ d ƒ | j d | j j ƒ ƒ ~ | j d | j j ƒ ƒ d S( Ns ::img::testt mastert foregroundt yellowt backgroundt bluet fileR i ( t tkintert BitmapImageR R t assertEqualt strt typet widtht heightR R t assertNotIn( R t image( ( s@ /usr/local/lib/python2.7/lib-tk/test/test_tkinter/test_images.pyt test_create_from_file s c C sâ t | j d ƒ } | j ƒ } Wd QXt j d d | j d d d d d | ƒ} | j t | ƒ d ƒ | j | j ƒ d ƒ | j | j ƒ d ƒ | j | j ƒ d ƒ | j d | j j ƒ ƒ ~ | j d | j j ƒ ƒ d S( Nt rbs ::img::testR R R R R t dataR i ( t openR t readR R! R R"