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

Detailed Description

Logical AND on conditions.

.. code-block:: python

match integer is in range [10, 100)

assert num == matching.And([matching.Ge(10), matching.Lt(100)])

Definition at line 139 of file matching.py.

Public Member Functions

 __init__ (self, *conditions)
 __repr__ (self)
 __eq__ (self, other)
 __testsuite_visit__ (self, visit)

Protected Attributes

 _conditions = conditions

Constructor & Destructor Documentation

◆ __init__()

testsuite.matching.And.__init__ ( self,
* conditions )

Definition at line 148 of file matching.py.

Member Function Documentation

◆ __eq__()

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

Definition at line 155 of file matching.py.

◆ __repr__()

testsuite.matching.And.__repr__ ( self)

Definition at line 151 of file matching.py.

◆ __testsuite_visit__()

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

Definition at line 163 of file matching.py.

Member Data Documentation

◆ _conditions

testsuite.matching.And._conditions = conditions
protected

Definition at line 149 of file matching.py.


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