#NEWLINE# def test_entryconfigure( self ) : #NEWLINE# #INDENT# m1 = self . create ( ) #NEWLINE# m1 . add_command ( label = 'test' ) #NEWLINE# self . assertRaises ( TypeError , m1 . entryconfigure ) #NEWLINE# with self . assertRaisesRegexp ( TclError , 'bad menu entry index "foo"' ) : #NEWLINE# #INDENT# m1 . entryconfigure ( 'foo' ) #NEWLINE# #UNINDENT# d = m1 . entryconfigure ( 1 ) #NEWLINE# self . assertIsInstance ( d , dict ) #NEWLINE# for ( k , v ) in d . items ( ) : #NEWLINE# #INDENT# self . assertIsInstance ( k , str ) #NEWLINE# self . assertIsInstance ( v , tuple ) #NEWLINE# self . assertEqual ( len ( k ) , 5 ) #NEWLINE# self . assertEqual ( v [ 0 ] , k ) #NEWLINE# self . assertEqual ( m1 . entrycget ( 1 , k ) , v [ 4 ] ) #NEWLINE# #UNINDENT# m1 . destroy ( )