#NEWLINE# def test_basic_upper( self ) : #NEWLINE# #INDENT# orig = { #NEWLINE# #INDENT# 'a' : 1 , #NEWLINE# 'b' : object ( ) , #NEWLINE# 'c' : { #NEWLINE# #INDENT# 'd' : set ( ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# remapped = remap ( orig , ( lambda p , k , v : ( k . upper ( ) , v ) ) ) #NEWLINE# assert ( orig [ 'a' ] == remapped [ 'A' ] ) #NEWLINE# assert ( orig [ 'b' ] == remapped [ 'B' ] ) #NEWLINE# assert ( self [ 'c' ] [ 'd' ] == remapped [ 'C' ] [ 'D' ] )