Ë
    ÉÓÐe'  ã                   ó`   — 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 )ÚStringEndsWithÚreturnc                 ó,   •— t         t        | �  |«       y )N)Úsuperr   Ú__init__)ÚselfÚ	substringÚ	__class__s     €úF/usr/lib/python3/dist-packages/hamcrest/library/text/stringendswith.pyr   zStringEndsWith.__init__   s   ø€ ÜŒn˜dÑ,¨YÕ7ó    Úitemc                 óR   — t        |d«      sy|j                  | j                  «      S )NÚendswithF)r   r   r   )r   r   s     r   Ú_matcheszStringEndsWith._matches   s"   € Ü˜˜zÔ*ØØ�}‰}˜TŸ^™^Ó,Ð,r   c                  ó   — y)Nzending with© )r   s    r   ÚrelationshipzStringEndsWith.relationship   s   € Ør   )r   N)	Ú__name__Ú
__module__Ú__qualname__r   ÚstrÚboolr   r   Ú__classcell__)r   s   @r   r   r   
   s    ø„ õ8ð-˜Sð - Tó -ö
r   r   Ústringr   c                 ó   — t        | «      S )aW  Matches if object is a string ending 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 ending characters of the evaluated
    object.

    Example::

        ends_with("bar")

    will match "foobar".

    )r   )r   s    r   Ú	ends_withr       s   € ô  ˜&Ó!Ð!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à€
Ø-€Ø$€ô
Ð%ô 
ð"�cð "˜g c™lô "r   