#NEWLINE# def assert_map_consistency( map_1 , map_2 ) : #NEWLINE# #INDENT# assert ( len ( map_1 ) == len ( map_2 ) ) #NEWLINE# for key in map_2 : #NEWLINE# #INDENT# assert ( key == map_2 [ map_1 [ key ] ] )