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 | |
Definition at line 503 of file matching.py.
| testsuite.matching.DictOf.__eq__ | ( | self, | |
| other ) |
Definition at line 510 of file matching.py.
| testsuite.matching.DictOf.__repr__ | ( | self | ) |
Definition at line 507 of file matching.py.
| testsuite.matching.DictOf.__testsuite_resolve_value__ | ( | self, | |
| other, | |||
| report_error ) |
Definition at line 525 of file matching.py.
| testsuite.matching.DictOf.__testsuite_visit__ | ( | self, | |
| visit ) |
Definition at line 522 of file matching.py.
|
protected |
Definition at line 504 of file matching.py.
|
protected |
Definition at line 505 of file matching.py.