File: //lib/python3/dist-packages/hamcrest/library/text/__pycache__/stringendswith.cpython-38.pyc
U
�b�V� � @ s@ d dl mZ d dlmZ dZdZdZG dd� de�Zdd � Zd
S )� )�SubstringMatcher)� hasmethodzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc s, e Zd Z� fdd�Zdd� Zdd� Z� ZS )�StringEndsWithc 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__c C s t |d�sdS |�| j�S )N�endswithF)r r
r )r �itemr r r �_matches s
zStringEndsWith._matchesc C s dS )Nzending withr )r r r r �relationship s zStringEndsWith.relationship)�__name__�
__module__�__qualname__r r r �
__classcell__r r r r r s r 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 )�stringr r r � ends_with s r N) Z&hamcrest.library.text.substringmatcherr Zhamcrest.core.helpers.hasmethodr �
__author__Z
__copyright__Z__license__r r r r r r �<module> s