Your IP : 216.73.216.52


Current Path : /usr/lib/python3/dist-packages/hamcrest/library/collection/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/hamcrest/library/collection/__pycache__/is_empty.cpython-38.pyc

U

�b�V��@s4ddlmZdZdZdZGdd�de�Zdd�Zd	S)
�)�BaseMatcherz
Chris RosezCopyright 2012 hamcrest.orgzBSD, see License.txtc@seZdZddd�Zdd�ZdS)�IsEmptyNcCsVz,t|�dkrWdS|r*|�dt|��Wn$tk
rP|rJ|�d�YdSXdS)NrTzhas %d item(s)zdoes not support lengthF)�len�append_text�	TypeError)�self�itemZmismatch_description�r	�F/usr/lib/python3/dist-packages/hamcrest/library/collection/is_empty.py�matches
s
��zIsEmpty.matchescCs|�d�dS)Nzan empty collection)r)rZdescriptionr	r	r
�describe_toszIsEmpty.describe_to)N)�__name__�
__module__�__qualname__rrr	r	r	r
rs
rcCst�S)zy
    This matcher matches any collection-like object that responds to the
    __len__ method, and has a length of 0.
    )rr	r	r	r
�emptysrN)Zhamcrest.core.base_matcherr�
__author__Z
__copyright__Z__license__rrr	r	r	r
�<module>s