HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/hamcrest/library/integration/__pycache__/match_equality.cpython-310.pyc
o

(]^+�@sfddlmZddlmZddlmZddlmZdZdZ	dZ
dZGd	d
�d
e�Z
dede
fd
d�ZdS)�)�Any)�wrap_matcher)�Matcher)�tostringz
Chris RosezCopyright 2011 hamcrest.orgzBSD, see License.txtTc@sLeZdZdeddfdd�Zdedefdd�Zdefd	d
�Z	defdd�Z
dS)
�EqualityWrapper�matcher�returnNcCs
||_dS�N�r)�selfr�r�M/usr/lib/python3/dist-packages/hamcrest/library/integration/match_equality.py�__init__�
zEqualityWrapper.__init__�objcCs|j�|�Sr	)r�matches)rrrrr
�__eq__szEqualityWrapper.__eq__cCst|�Sr	)�repr�rrrr
�__str__szEqualityWrapper.__str__cCs
t|j�Sr	)rrrrrr
�__repr__rzEqualityWrapper.__repr__)�__name__�
__module__�__qualname__rrr�boolr�strrrrrrr
r
s
rrrcCstt|��S)a<Wraps a matcher to define equality in terms of satisfying the matcher.

    ``match_equality`` allows Hamcrest matchers to be used in libraries that
    are not Hamcrest-aware. They might use the equality operator::

        assert match_equality(matcher) == object

    Or they might provide a method that uses equality for its test::

        library.method_that_tests_eq(match_equality(matcher))

    One concrete example is integrating with the ``assert_called_with`` methods
    in Michael Foord's `mock <http://www.voidspace.org.uk/python/mock/>`_
    library.

    )rrr
rrr
�match_equalitysrN)�typingr�"hamcrest.core.helpers.wrap_matcherr�hamcrest.core.matcherr� hamcrest.core.string_descriptionr�
__author__�
__copyright__�__license__�
__unittest�objectrrrrrr
�<module>s