Ë
    ÉÓÐe+  ã                   ój   — d dl mZ d dlmZ d dlmZ d dlmZ dZdZ	dZ
dZ G d	„ d
e«      Zdedefd„Zy)é    )ÚAny)Úwrap_matcher)ÚMatcher)Útostringz
Chris RosezCopyright 2011 hamcrest.orgzBSD, see License.txtTc                   óD   — e Zd Zdeddfd„Zdedefd„Zdefd„Z	defd„Z
y)	ÚEqualityWrapperÚmatcherÚreturnNc                 ó   — || _         y ©N©r	   )Úselfr	   s     úM/usr/lib/python3/dist-packages/hamcrest/library/integration/match_equality.pyÚ__init__zEqualityWrapper.__init__   s	   € Øˆ�ó    Úobjc                 ó8   — | j                   j                  |«      S r   )r	   Úmatches)r   r   s     r   Ú__eq__zEqualityWrapper.__eq__   s   € Ø�|‰|×#Ñ# CÓ(Ð(r   c                 ó   — t        | «      S r   )Úrepr©r   s    r   Ú__str__zEqualityWrapper.__str__   s   € Ü�D‹zÐr   c                 ó,   — t        | j                  «      S r   )r   r	   r   s    r   Ú__repr__zEqualityWrapper.__repr__   s   € Ü˜Ÿ™Ó%Ð%r   )Ú__name__Ú
__module__Ú__qualname__r   r   r   Úboolr   Ústrr   r   © r   r   r   r      s@   „ ð ð ¨Dó ð)˜#ð ) $ó )ð˜ó ð&˜#ô &r   r   r	   r
   c                 ó*   — t        t        | «      «      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.

    )r   r   r   s    r   Úmatch_equalityr#      s   € ô" œ<¨Ó0Ó1Ð1r   N)Útypingr   Ú"hamcrest.core.helpers.wrap_matcherr   Úhamcrest.core.matcherr   Ú hamcrest.core.string_descriptionr   Ú
__author__Ú__copyright__Ú__license__Ú
__unittestÚobjectr   r#   r!   r   r   ú<module>r-      sD   ðÝ å ;Ý )Ý 5à€
Ø-€Ø$€Ø€
ô&�fô &ð2˜Gð 2¨ô 2r   