PyDocs

Nav

Development Tools

TestCase.assertRegex

unittest

method of TestCase · Added in 3.2 (source)
  • TestCase.assertRegex(text, regex, msg=None)
Fail the test unless the text matches the regular expression.
Changed in 3.1, 3.2
  • 3.1: Added under the name assertRegexpMatches.
  • 3.2: The method assertRegexpMatches() has been renamed to assertRegex().
0 Examples
No examples for unittest/TestCase.assertRegex.
See Also
No see-alsos for unittest/TestCase.assertRegex
0 Notes
No notes for TestCase.assertRegex