def assert_equal(x, y, msg=None):
 if (x == y):
  return
 std_msg = ('%s not equal to %s' % (_safe_rep(x), _safe_rep(y)))
 raise AssertionError(_format_msg(msg, std_msg))

def assert_equal ( x , y , msg = None ) : if ( x == y ) : return std_msg = ( '%s not equal to %s' % ( _safe_rep ( x ) , _safe_rep ( y ) ) ) raise AssertionError ( _format_msg ( msg , std_msg ) )
fail if given objects are unequal as determined by the == operator .