#NEWLINE# def check_underlying_dict( self , d , expected ) : #NEWLINE# #INDENT# '\n        Check for implementation details.\n        ' #NEWLINE# self . assertEqual ( d . _data , expected ) #NEWLINE# self . assertEqual ( set ( v . _original ) , set ( expected ) ) #NEWLINE# self . assertEqual ( [ d . _transform ( v ) for v in d . _original . values ( ) ] , list ( d . _original . keys ( ) ) )