#NEWLINE# def check_itemconfigure( self , name , value ) : #NEWLINE# #INDENT# widget = self . create ( ) #NEWLINE# widget . insert ( 'end' , 'a' , 'b' , 'c' , 'd' ) #NEWLINE# widget . itemconfigure ( 0 , ** { #NEWLINE# #INDENT# name : value , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( widget . itemconfigure ( 0 , name ) [ 4 ] , value ) #NEWLINE# self . assertEqual ( widget . itemcget ( 0 , name ) , widget ) #NEWLINE# with self . assertRaisesRegexp ( TclError , 'unknown color name "spam"' ) : #NEWLINE# #INDENT# widget . itemconfigure ( 0 , ** { #NEWLINE# #INDENT# name : 'spam' , #NEWLINE# #UNINDENT# } )