File: //proc/self/root/usr/lib/python3/dist-packages/hamcrest/core/core/__pycache__/issame.cpython-38.pyc
U
�b�V� � @ s4 d Z dZdZddlmZ G dd� de�Zdd� Zd S )
zJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt� )�BaseMatcherc @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S )
�IsSamec C s
|| _ d S �N��object)�selfr � r �;/usr/lib/python3/dist-packages/hamcrest/core/core/issame.py�__init__
s zIsSame.__init__c C s
|| j kS r r )r �itemr r r �_matches
s zIsSame._matchesc C s, |� d�� tt| j���� d��| j� d S )Nzsame instance as � )�append_text�hex�idr �append_description_of)r Zdescriptionr r r �describe_to s
���zIsSame.describe_toc C s8 |� d� |d k r*|� tt|���� d� |�|� d S )Nzwas r
)r r r r )r r Zmismatch_descriptionr r r �describe_mismatch s
�zIsSame.describe_mismatchN)�__name__�
__module__�__qualname__r
r r r r r r r r s r c C s t | �S )a Matches if evaluated object is the same instance as a given object.
:param obj: The object to compare against as the expected value.
This matcher invokes the ``is`` identity operator to determine if the
evaluated object is the the same object as ``obj``.
)r )�objr r r �
same_instance s r N)�
__author__Z
__copyright__Z__license__Zhamcrest.core.base_matcherr r r r r r r �<module> s