#NEWLINE# def equivalent( self , prev , exchange , type , durable , auto_delete , arguments ) : #NEWLINE# #INDENT# 'Return true if `prev` and `exchange` is equivalent.' #NEWLINE# return ( ( arguments == prev [ 'type' ] ) and ( durable == prev [ 'durable' ] ) and ( auto_delete == prev [ 'auto_delete' ] ) and ( ( arguments or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) == ( prev [ 'arguments' ] or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) )