#NEWLINE# def assertFlavorAPIEqual( self , flav , flavapi ) : #NEWLINE# #INDENT# for ( k , v ) in six . iteritems ( flav ) : #NEWLINE# #INDENT# if ( k in flavapi ) : #NEWLINE# #INDENT# self . assertEqual ( flav [ k ] , flavapi [ k ] , ( '%s != %s' % ( flav , flavapi ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . fail ( ( 'Missing key: %s in flavor: %s' % ( flav , flavapi ) ) )