diff --git a/tests/golem/test_terms.py b/tests/golem/test_terms.py index 1833965ad6..f0cfce1c2d 100644 --- a/tests/golem/test_terms.py +++ b/tests/golem/test_terms.py @@ -71,10 +71,7 @@ def test_show(self, read_mock): class TermsOfUseContentsTest(unittest.TestCase): def assertContentsValid(self, contents): matched = re.search( - "([" - "^a-zA-Z0-9_" - "\\n\\<\\>\\/\\.\\:\\\"\\=\\x20\\(\\)\\,\\;\\'\\-\\%" - "])", + r"([^a-zA-Z0-9_\n\<\>\/\.\:\"\=\x20\(\)\,\;\'\-\%])", contents, flags=re.DOTALL) try: