/usr/lib/python3/dist-packages/hamcrest/library/text/__pycache__
Edit: /usr/lib/python3/dist-packages/hamcrest/library/text/__pycache__/stringstartswith.cpython-310.pyc (1721B)
o
(]^B ã @ 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 )ÚStringStartsWithÚreturnNc s t t| ƒ |¡ d S )N)Úsuperr Ú__init__)ÚselfÚ substring©Ú __class__© úH/usr/lib/python3/dist-packages/hamcrest/library/text/stringstartswith.pyr s zStringStartsWith.__init__Úitemc C s t |dƒsdS | | j¡S )NÚ
startswithF)r r r
)r r r
r
r Ú_matches s
zStringStartsWith._matchesc C s dS )Nz
starting withr
)r r
r
r Úrelationship s zStringStartsWith.relationship)r N) Ú__name__Ú
__module__Ú__qualname__r ÚstrÚboolr r Ú
__classcell__r
r
r r r
s r r
r c C s 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
r
r
r Ústarts_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