Ë
    ÉÓÐeB  ã                   ó`   — 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«      Z	d	e
d
ee
   fd„Zy)é    )Ú	hasmethod)ÚMatcher)ÚSubstringMatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc                   ó6   ‡ — e Zd Zdˆ fd„Zdedefd„Zd„ Zˆ xZS )ÚStringStartsWithÚreturnc                 ó,   •— t         t        | �  |«       y )N)Úsuperr   Ú__init__)ÚselfÚ	substringÚ	__class__s     €úH/usr/lib/python3/dist-packages/hamcrest/library/text/stringstartswith.pyr   zStringStartsWith.__init__   s   ø€ ÜÔ Ñ.¨yÕ9ó    Úitemc                 óR   — t        |d«      sy|j                  | j                  «      S )NÚ
startswithF)r   r   r   )r   r   s     r   Ú_matcheszStringStartsWith._matches   s"   € Ü˜˜|Ô,ØØ�‰˜tŸ~™~Ó.Ð.r   c                  ó   — y)Nzstarting with© )r   s    r   ÚrelationshipzStringStartsWith.relationship   s   € Ør   )r   N)	Ú__name__Ú
__module__Ú__qualname__r   ÚstrÚboolr   r   Ú__classcell__)r   s   @r   r   r   
   s    ø„ õ:ð/˜Sð / Tó /ö
r   r   r   r   c                 ó   — t        | «      S )a^  Matches if object is a string starting with a given string.

    :param string: The string to search for.

    This matcher first checks whether the evaluated object is a string. If so,
    it checks if ``string`` matches the beginning characters of the evaluated
    object.

    Example::

        starts_with("foo")

    will match "foobar".

    )r   )r   s    r   Ústarts_withr      s   € ô  ˜IÓ&Ð&r   N)Úhamcrest.core.helpers.hasmethodr   Úhamcrest.core.matcherr   Ú&hamcrest.library.text.substringmatcherr   Ú
__author__Ú__copyright__Ú__license__r   r   r   r   r   r   ú<module>r&      sA   ðÝ 5Ý )Ý Cà€
Ø-€Ø$€ô
Ð'ô 
ð'˜3ð ' 7¨3¡<ô 'r   