e+ddlmZmZmZmZddlmZddlmZddl m Z ddl m Z ddl mZdZdZd Zed ZGd d eeeefZd eeeefdeeeeffdZy))AnyMappingTypeVarUnion) BaseMatcher) Description) hasmethod) wrap_matcher)MatcherzJon ReidzCopyright 2011 hamcrest.orgzBSD, see License.txtVcLeZdZdeeddfdZdeeefdefdZ de ddfdZ y) IsDictContainingValue value_matcherreturnNc||_y)N)r)selfrs T/usr/lib/python3/dist-packages/hamcrest/library/collection/isdict_containingvalue.py__init__zIsDictContainingValue.__init__s *itemct|dr2|jD]}|jj|syy)NvaluesTF)r rrmatches)rrvalues r_matcheszIsDictContainingValue._matchess= T8 $ %%--e4 r descriptioncX|jdj|jy)Nza dictionary containing value ) append_textappend_description_ofr)rrs r describe_toz!IsDictContainingValue.describe_tos% @AWW    r) __name__ __module__ __qualname__r r rrrboolrrr rrrrsG+gaj+T+WS!V_ { t rrrrc*tt|S)aMatches 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') )rr )rs r has_valuer'!s* !e!4 55rN)typingrrrrhamcrest.core.base_matcherrhamcrest.core.descriptionrhamcrest.core.helpers.hasmethodr "hamcrest.core.helpers.wrap_matcherr hamcrest.core.matcherr __author__ __copyright__ __license__r rr'r%rrr1sx//215;)  - $  CL KQ8 "6U1gaj=)6ggc1fo.F6r