%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/hamcrest/library/integration/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/hamcrest/library/integration/__pycache__/match_equality.cpython-312.pyc

�

���e+��j�ddlmZddlmZddlmZddlmZdZdZ	dZ
dZGd	�d
e�Z
dede
fd
�Zy)�)�Any)�wrap_matcher)�Matcher)�tostringz
Chris RosezCopyright 2011 hamcrest.orgzBSD, see License.txtTc�D�eZdZdeddfd�Zdedefd�Zdefd�Z	defd�Z
y)	�EqualityWrapper�matcher�returnNc��||_y�N�r	)�selfr	s  �M/usr/lib/python3/dist-packages/hamcrest/library/integration/match_equality.py�__init__zEqualityWrapper.__init__s	������objc�8�|jj|�Sr)r	�matches)rrs  r�__eq__zEqualityWrapper.__eq__s���|�|�#�#�C�(�(rc��t|�Sr)�repr�rs r�__str__zEqualityWrapper.__str__s���D�z�rc�,�t|j�Sr)rr	rs r�__repr__zEqualityWrapper.__repr__s������%�%r)�__name__�
__module__�__qualname__rrr�boolr�strrr�rrrr
s@�����D��)�#�)�$�)����&�#�&rrr	r
c�*�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
s r�match_equalityr#s��"�<��0�1�1rN)�typingr�"hamcrest.core.helpers.wrap_matcherr�hamcrest.core.matcherr� hamcrest.core.string_descriptionr�
__author__�
__copyright__�__license__�
__unittest�objectrr#r!rr�<module>r-sD���;�)�5�
�
�-�
�$��
�
�&�f�&�2�G�2��2r

Zerion Mini Shell 1.0