Fail the test unless the text matches the regular expression.
unittest/TestCase.assertRegex
TestCase.assertRegex