File: //lib/python3/dist-packages/hamcrest/library/collection/__pycache__/isin.cpython-38.pyc
U
�b�V � @ s4 d dl mZ dZdZdZG dd� de�Zdd� Zd S )
� )�BaseMatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtc @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�IsInc C s
|| _ d S �N��sequence)�selfr � r �B/usr/lib/python3/dist-packages/hamcrest/library/collection/isin.py�__init__
s z
IsIn.__init__c C s
|| j kS r r )r �itemr r r �_matches
s z
IsIn._matchesc C s |� d��ddd| j� d S )Nzone of �(z, �))Zappend_textZappend_listr )r Zdescriptionr r r �describe_to s
�zIsIn.describe_toN)�__name__�
__module__�__qualname__r
r r r r r r r s r c C s t | �S )z�Matches if evaluated object is present in a given sequence.
:param sequence: The sequence to search.
This matcher invokes the ``in`` membership operator to determine if the
evaluated object is a member of the sequence.
)r r r r r �is_in s r N)Zhamcrest.core.base_matcherr �
__author__Z
__copyright__Z__license__r r r r r r �<module> s