/usr/lib/python3/dist-packages/hamcrest/library/text/__pycache__
Edit: /usr/lib/python3/dist-packages/hamcrest/library/text/__pycache__/stringendswith.cpython-310.pyc (1701B)
o
(]^' ã @ sZ d dl mZ d dlmZ d dlmZ dZdZdZG dd„ deƒZ d e
d
ee
fdd„Zd
S )é )Ú hasmethod)ÚMatcher)ÚSubstringMatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc s8 e Zd Zd
‡ fdd„Zdedefdd„Zdd „ Z‡ ZS )ÚStringEndsWithÚreturnNc s t t| ƒ |¡ d S )N)Úsuperr Ú__init__)ÚselfÚ substring©Ú __class__© úF/usr/lib/python3/dist-packages/hamcrest/library/text/stringendswith.pyr s zStringEndsWith.__init__Úitemc C s t |dƒsdS | | j¡S )NÚendswithF)r r r
)r r r
r
r Ú_matches s
zStringEndsWith._matchesc C s dS )Nzending withr
)r r
r
r Úrelationship s zStringEndsWith.relationship)r N) Ú__name__Ú
__module__Ú__qualname__r ÚstrÚboolr r Ú
__classcell__r
r
r r r
s r Ústringr c C s 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 r
r
r Ú ends_with s r N)Úhamcrest.core.helpers.hasmethodr Úhamcrest.core.matcherr Ú&hamcrest.library.text.substringmatcherr Ú
__author__Ú
__copyright__Ú__license__r r r r
r
r
r Ú
s