HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/hamcrest/library/integration/__pycache__/match_equality.cpython-38.pyc
U

�b�V��@sDddlmZddlmZdZdZdZdZGdd�de�Z	d	d
�Z
dS)�)�tostring)�wrap_matcherz
Chris RosezCopyright 2011 hamcrest.orgzBSD, see License.txtTc@s,eZdZdd�Zdd�Zdd�Zdd�Zd	S)
�EqualityWrappercCs
||_dS�N��matcher)�selfr�r	�M/usr/lib/python3/dist-packages/hamcrest/library/integration/match_equality.py�__init__szEqualityWrapper.__init__cCs|j�|�Sr)rZmatches)r�objectr	r	r
�__eq__szEqualityWrapper.__eq__cCst|�Sr)�repr�rr	r	r
�__str__szEqualityWrapper.__str__cCs
t|j�Sr)rrrr	r	r
�__repr__szEqualityWrapper.__repr__N)�__name__�
__module__�__qualname__rr
rrr	r	r	r
r
srcCs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.

    )rrrr	r	r
�match_equalitysrN)Z hamcrest.core.string_descriptionrZ"hamcrest.core.helpers.wrap_matcherr�
__author__Z
__copyright__Z__license__Z
__unittestrrrr	r	r	r
�<module>s