File: //usr/lib/python3/dist-packages/hamcrest/core/core/__pycache__/isequal.cpython-38.pyc
U
�b�V} � @ s@ d Z dZdZddlmZ ddlmZ G dd� de�Zdd � Zd
S )zJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt� )�BaseMatcher)�Matcherc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�IsEqualc C s
|| _ d S �N��object)�selfZequals� r �</usr/lib/python3/dist-packages/hamcrest/core/core/isequal.py�__init__ s zIsEqual.__init__c C s
|| j kS r r )r �itemr r r
�_matches s zIsEqual._matchesc C s8 t | jt�}|r|�d� |�| j� |r4|�d� d S )N�<�>)�
isinstancer r Zappend_textZappend_description_of)r ZdescriptionZnested_matcherr r r
�describe_to s
zIsEqual.describe_toN)�__name__�
__module__�__qualname__r r
r r r r r
r s r c C s t | �S )z�Matches if object is equal to a given object.
:param obj: The object to compare against as the expected value.
This matcher compares the evaluated object to ``obj`` for equality.)r )�objr r r
�equal_to s r N) �
__author__Z
__copyright__Z__license__Zhamcrest.core.base_matcherr Zhamcrest.core.matcherr r r r r r r
�<module> s