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

Detailed Description

Logical OR on conditions.

.. code-block:: python

match integers abs(num) >= 10

assert num == matching.Or([matching.Ge(10), matching.Le(-10)])

Definition at line 167 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.Or.__init__ ( self,
* conditions )

Definition at line 176 of file matching.py.

Member Function Documentation

◆ __eq__()

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

Definition at line 183 of file matching.py.

◆ __repr__()

testsuite.matching.Or.__repr__ ( self)

Definition at line 179 of file matching.py.

◆ __testsuite_visit__()

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

Definition at line 191 of file matching.py.

Member Data Documentation

◆ _conditions

testsuite.matching.Or._conditions = conditions
protected

Definition at line 177 of file matching.py.


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