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

Detailed Description

Condition inversion.

Example:

.. code-block:: python

check value is not 1

assert value == matching.Not(1)

Definition at line 195 of file matching.py.

Public Member Functions

 __init__ (self, condition)
 __repr__ (self)
 __eq__ (self, other)
 __testsuite_visit__ (self, visit)

Protected Attributes

 _condition = condition

Constructor & Destructor Documentation

◆ __init__()

testsuite.matching.Not.__init__ ( self,
condition )

Definition at line 206 of file matching.py.

Member Function Documentation

◆ __eq__()

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

Definition at line 212 of file matching.py.

◆ __repr__()

testsuite.matching.Not.__repr__ ( self)

Definition at line 209 of file matching.py.

◆ __testsuite_visit__()

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

Definition at line 217 of file matching.py.

Member Data Documentation

◆ _condition

testsuite.matching.Not._condition = condition
protected

Definition at line 207 of file matching.py.


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