/usr/lib/python3/dist-packages/hamcrest/library/text/__pycache__
Edit: /usr/lib/python3/dist-packages/hamcrest/library/text/__pycache__/stringcontains.cpython-310.pyc (1673B)
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 )ÚStringContainsÚreturnNc s t t| ƒ |¡ d S )N)Úsuperr Ú__init__)ÚselfÚ substring©Ú __class__© úF/usr/lib/python3/dist-packages/hamcrest/library/text/stringcontains.pyr s zStringContains.__init__Úitemc C s t |dƒsdS | | j¡dkS )NÚfindFr )r r r
)r r r
r
r Ú_matches s
zStringContains._matchesc C s dS )NÚ
containingr
)r r
r
r Úrelationship s zStringContains.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 )a4 Matches if object is a string containing 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 whether it contains ``string``.
Example::
contains_string("def")
will match "abcdefg".
)r )r
r
r
r Úcontains_string 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