#NEWLINE# def test_create_from_file( self ) : #NEWLINE# #INDENT# image = tkinter . BitmapImage ( '::img::test' , master = self . root , foreground = 'yellow' , background = 'blue' , file = self . testfile ) #NEWLINE# self . assertEqual ( str ( image ) , '::img::test' ) #NEWLINE# self . assertEqual ( image . type ( ) , 'bitmap' ) #NEWLINE# self . assertEqual ( image . width ( ) , 16 ) #NEWLINE# self . assertEqual ( image . height ( ) , 16 ) #NEWLINE# self . assertIn ( '::img::test' , self . root . image_names ( ) ) #NEWLINE# del image #NEWLINE# self . assertNotIn ( '::img::test' , self . root . image_names ( ) )