parameters: (self, rhs)
docstring: Check if the given attribute has a matching value in the rhs object.
  
          Returns:
              bool
docstring_summary: Check if the given attribute has a matching value in the rhs object.
docstring_tokens: Check if the given attribute has a matching value in the rhs object .
function: def equals(self, rhs):
          """Check if the given attribute has a matching value in the rhs object.
  
          Returns:
              bool
          """
  
          try:
              return getattr(rhs, self._key) == self._value
          except Exception:
              return False
function_tokens: def equals ( self , rhs ) : try : return getattr ( rhs , self . _key ) == self . _value except Exception : return False