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

Detailed Description

Value is a list of values.

Example:

.. code-block:: python

assert ['foo', 'bar'] == matching.ListOf(matching.any_string) assert [1, 2] != matching.ListOf(matching.any_string)

Definition at line 432 of file matching.py.

Public Member Functions

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

Protected Attributes

 _value = value

Constructor & Destructor Documentation

◆ __init__()

testsuite.matching.ListOf.__init__ ( self,
value = Any() )

Definition at line 443 of file matching.py.

Member Function Documentation

◆ __eq__()

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

Definition at line 449 of file matching.py.

◆ __repr__()

testsuite.matching.ListOf.__repr__ ( self)

Definition at line 446 of file matching.py.

◆ __testsuite_resolve_value__()

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

Definition at line 462 of file matching.py.

◆ __testsuite_visit__()

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

Definition at line 459 of file matching.py.

Member Data Documentation

◆ _value

testsuite.matching.ListOf._value = value
protected

Definition at line 444 of file matching.py.


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