File: //lib/python3/dist-packages/hamcrest/library/collection/__pycache__/is_empty.cpython-38.pyc
U
�b�V� � @ s4 d dl mZ dZdZdZG dd� de�Zdd� Zd S )
� )�BaseMatcherz
Chris RosezCopyright 2012 hamcrest.orgzBSD, see License.txtc @ s e Zd Zddd�Zdd� ZdS )�IsEmptyNc C sV z,t |�dkrW dS |r*|�dt |� � W n$ tk
rP |rJ|�d� Y dS X d S )Nr Tzhas %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.matchesc C s |� d� d S )Nzan empty collection)r )r Zdescriptionr r r
�describe_to s zIsEmpty.describe_to)N)�__name__�
__module__�__qualname__r r r r r r
r s
r c C s t � S )zy
This matcher matches any collection-like object that responds to the
__len__ method, and has a length of 0.
)r r r r r
�empty s r N)Zhamcrest.core.base_matcherr �
__author__Z
__copyright__Z__license__r r r r r r
�<module> s