#NEWLINE# def test_configure_data( self ) : #NEWLINE# #INDENT# image = tkinter . PhotoImage ( '::img::test' , master = self . root ) #NEWLINE# self . assertEqual ( image [ 'data' ] , '' ) #NEWLINE# with open ( self . testfile , 'rb' ) as f : #NEWLINE# #INDENT# data = f . read ( ) #NEWLINE# #UNINDENT# image . configure ( data = data ) #NEWLINE# self . assertEqual ( image [ 'data' ] , ( data if self . wantobjects else data . decode ( 'latin1' ) ) ) #NEWLINE# self . assertEqual ( image . width ( ) , 16 ) #NEWLINE# self . assertEqual ( image . height ( ) , 16 )