https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /lib/python3/dist-packages/hamcrest/library/integration/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current 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

https://t.me/RX1948 - 2025