Ë
    ÉÓÐes  ã                   ón   — 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
 G d„ d	ee   «      Zd
ee   fd„Zy)é    )ÚBaseMatcher)ÚDescription)Úwrap_matcher)ÚMatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc                   óB   — e Zd Zdee   ddfd„Zdedefd„Zde	ddfd„Z
y)	Ú	HasStringÚstr_matcherÚreturnNc                 ó   — || _         y ©N)r	   )Úselfr	   s     úC/usr/lib/python3/dist-packages/hamcrest/library/object/hasstring.pyÚ__init__zHasString.__init__   s
   € Ø&ˆÕó    Úitemc                 óJ   — | j                   j                  t        |«      «      S r   )r	   ÚmatchesÚstr)r   r   s     r   Ú_matcheszHasString._matches   s   € Ø×Ñ×'Ñ'¬¨D«	Ó2Ð2r   Údescriptionc                 óX   — |j                  d«      j                  | j                  «       y )Nzan object with str )Úappend_textÚappend_description_ofr	   )r   r   s     r   Údescribe_tozHasString.describe_to   s"   € Ø×ÑÐ 5Ó6×LÑLÈT×M]ÑM]Õ^r   )Ú__name__Ú
__module__Ú__qualname__r   r   r   ÚobjectÚboolr   r   r   © r   r   r   r      sB   „ ð' G¨C¡Lð '°Tó 'ð3˜Vð 3¨ó 3ð_ {ð _°tô _r   r   r
   c                 ó*   — t        t        | «      «      S )aR  Matches if ``str(item)`` satisfies a given matcher.

    :param match: The matcher to satisfy, or an expected value for
        :py:func:`~hamcrest.core.core.isequal.equal_to` matching.

    This matcher invokes the :py:func:`str` function on the evaluated object to
    get its length, passing the result to a given matcher for evaluation. If
    the ``match`` argument is not a matcher, it is implicitly wrapped in an
    :py:func:`~hamcrest.core.core.isequal.equal_to` matcher to check for
    equality.

    Examples::

        has_string(starts_with('foo'))
        has_string('bar')

    )r   r   )Úmatchs    r   Ú
has_stringr#      s   € ô$ ”\ %Ó(Ó)Ð)r   N)Úhamcrest.core.base_matcherr   Úhamcrest.core.descriptionr   Ú"hamcrest.core.helpers.wrap_matcherr   Úhamcrest.core.matcherr   Ú
__author__Ú__copyright__Ú__license__r   r   r#   r    r   r   ú<module>r+      sC   ðÝ 2Ý 1Ý ;Ý )à€
Ø-€Ø$€ô_�˜FÑ#ô _ð*˜ ™ô *r   