userver: testsuite.matching.DictOf Class Reference
Loading...
Searching...
No Matches
testsuite.matching.DictOf Class Reference

Detailed Description

Value is a dictionary of (key, value) pairs.

Example:

.. code-block:: python

pred = matching.DictOf(key=matching.any_string, value=matching.any_string) assert pred == {'foo': 'bar'} assert pred != {'foo': 1} assert pred != {1: 'bar'}

Definition at line 490 of file matching.py.

Public Member Functions

 __init__ (self, key=Any(), value=Any())
 __repr__ (self)
 __eq__ (self, other)
 __testsuite_visit__ (self, visit)
 __testsuite_resolve_value__ (self, other, report_error)

Protected Attributes

 _key = key
 _value = value

Constructor & Destructor Documentation

◆ __init__()

testsuite.matching.DictOf.__init__ ( self,
key = Any(),
value = Any() )

Definition at line 503 of file matching.py.

Member Function Documentation

◆ __eq__()

testsuite.matching.DictOf.__eq__ ( self,
other )

Definition at line 510 of file matching.py.

◆ __repr__()

testsuite.matching.DictOf.__repr__ ( self)

Definition at line 507 of file matching.py.

◆ __testsuite_resolve_value__()

testsuite.matching.DictOf.__testsuite_resolve_value__ ( self,
other,
report_error )

Definition at line 525 of file matching.py.

◆ __testsuite_visit__()

testsuite.matching.DictOf.__testsuite_visit__ ( self,
visit )

Definition at line 522 of file matching.py.

Member Data Documentation

◆ _key

testsuite.matching.DictOf._key = key
protected

Definition at line 504 of file matching.py.

◆ _value

testsuite.matching.DictOf._value = value
protected

Definition at line 505 of file matching.py.


The documentation for this class was generated from the following file: