Match string with regular expression.
.. code-block:: python
assert response.json() == { 'order_id': matching.RegexString('^[0-9a-f]*$'), ... }
Definition at line 46 of file matching.py.
Public Member Functions | |
| __init__ (self, pattern) | |
| __repr__ (self) | |
| __eq__ (self, other) | |
Protected Attributes | |
| _pattern = re.compile(pattern) | |
| testsuite.matching.RegexString.__init__ | ( | self, | |
| pattern ) |
Definition at line 59 of file matching.py.
| testsuite.matching.RegexString.__eq__ | ( | self, | |
| other ) |
Definition at line 65 of file matching.py.
| testsuite.matching.RegexString.__repr__ | ( | self | ) |
Definition at line 62 of file matching.py.
|
protected |
Definition at line 60 of file matching.py.