PHP WebShell
Текущая директория: /usr/lib/python3/dist-packages/hamcrest/library/collection/__pycache__
Просмотр файла: isdict_containingvalue.cpython-310.pyc
o
(]^+ � @ s� d dl mZmZmZmZ d dlmZ d dlmZ d dl m
Z
d dlmZ d dl
mZ dZdZd Zed
�ZG dd� deeeef �Zd
eeee f deeeef fdd�ZdS )� )�Any�Mapping�TypeVar�Union)�BaseMatcher)�Description)� hasmethod)�wrap_matcher)�MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txt�Vc @ sN e Zd Zdee ddfdd�Zdeeef defdd�Z d e
ddfd
d�ZdS )�IsDictContainingValue�
value_matcher�returnNc C s
|| _ d S )N)r
)�selfr
� r �T/usr/lib/python3/dist-packages/hamcrest/library/collection/isdict_containingvalue.py�__init__ s
zIsDictContainingValue.__init__�itemc C s. t |d�r|�� D ]}| j�|�r dS q dS )N�valuesTF)r r r
�matches)r r �valuer r r �_matches s
�zIsDictContainingValue._matches�descriptionc C s |� d��| j� d S )Nza dictionary containing value )�append_text�append_description_ofr
)r r r r r �describe_to s
�z!IsDictContainingValue.describe_to)�__name__�
__module__�__qualname__r
r r r r �boolr r r r r r r r s r r r c C s t t| ��S )a� Matches if dictionary contains an entry whose value satisfies a given
matcher.
:param value_match: The matcher to satisfy for the value, or an expected
value for :py:func:`~hamcrest.core.core.isequal.equal_to` matching.
This matcher iterates the evaluated dictionary, searching for any key-value
entry whose value satisfies the given matcher. If a matching entry is
found, ``has_value`` is satisfied.
Any argument that is not a matcher is implicitly wrapped in an
:py:func:`~hamcrest.core.core.isequal.equal_to` matcher to check for
equality.
Examples::
has_value(equal_to('bar'))
has_value('bar')
)r r )r r r r � has_value! s r N)�typingr r r r �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 .Выполнить команду
Для локальной разработки. Не используйте в интернете!