o
    (]^  ã                   @   sP   d dl mZmZ d dlmZ d dlmZ dZdZdZ	G dd„ dee
 ed	�Zd
S )é    )ÚABCMetaÚabstractmethod)ÚBaseMatcher)ÚDescriptionzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc                   @   s4   e Zd Zd
dd„Zdeddfdd„Zedd	„ ƒZdS )ÚSubstringMatcherÚreturnNc                 C   s$   t |tƒst| jjd ƒ‚|| _d S )Nz requires string)Ú
isinstanceÚstrÚ	TypeErrorÚ	__class__Ú__name__Ú	substring)Úselfr   © r   úH/usr/lib/python3/dist-packages/hamcrest/library/text/substringmatcher.pyÚ__init__   s   

zSubstringMatcher.__init__Údescriptionc                 C   s&   |  d¡  |  ¡ ¡  d¡ | j¡ d S )Nz	a string ú )Úappend_textÚrelationshipÚappend_description_ofr   )r   r   r   r   r   Údescribe_to   s   ÿzSubstringMatcher.describe_toc                 C   s   d S )Nr   )r   r   r   r   r      s   zSubstringMatcher.relationship)r   N)r   Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   r   r      s
    
r   )Ú	metaclassN)Úabcr   r   Úhamcrest.core.base_matcherr   Úhamcrest.core.descriptionr   Ú
__author__Ú__copyright__Ú__license__r	   r   r   r   r   r   Ú<module>   s    