AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/hamcrest/library/object/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

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&

Anon7 - 2022
AnonSec Team