| Server IP : 186.64.123.29 / Your IP : 216.73.217.94 Web Server : LiteSpeed System : Linux house.hostinglat.cl 5.15.0-185-generic #195-Ubuntu SMP Fri Jun 19 17:11:50 UTC 2026 x86_64 User : tuemp9827 ( 1016) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/hamcrest/library/text/__pycache__/ |
Upload File : |
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)Zhamcrest.core.helpers.hasmethodr Zhamcrest.core.matcherr Z&hamcrest.library.text.substringmatcherr �
__author__Z
__copyright__Z__license__r r r r
r
r
r �<module> s