def is_equivalent_mismatch(expected):
 def to_dict(mismatch):
  return {'details': mismatch.get_details(), 'description': mismatch.describe()}
 if (expected is None):
  return Is(None)
 return AfterPreprocessing(to_dict, Equals(to_dict(expected)), annotate=False)

def is_equivalent_mismatch ( expected ) : def to_dict ( mismatch ) : return { 'details' : mismatch . get_details ( ) , 'description' : mismatch . describe ( ) } if ( expected is None ) : return Is ( None ) return AfterPreprocessing ( to_dict , Equals ( to_dict ( expected ) ) , annotate = False )
matches another mismatch .