#NEWLINE# def test_configure_foreground( self ) : #NEWLINE# #INDENT# image = tkinter . BitmapImage ( '::img::test' , master = self . root ) #NEWLINE# self . assertEqual ( image [ 'foreground' ] , '-foreground {} {} #000000 #000000' ) #NEWLINE# image . configure ( foreground = 'yellow' ) #NEWLINE# self . assertEqual ( image [ 'foreground' ] , '-foreground {} {} #000000 yellow' )