File: //usr/lib/python3/dist-packages/hamcrest/library/text/__pycache__/stringstartswith.cpython-310.pyc
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 �<module> s