Home
last modified time | relevance | path

Searched refs:assertRegex (Results 1 – 25 of 46) sorted by relevance

12

/external/python/cpython3/Lib/test/
Dtest_site.py122 self.assertRegex(err_out.getvalue(), "line 1")
123 self.assertRegex(err_out.getvalue(),
128 self.assertRegex(err_out.getvalue(), 'Traceback')
129 self.assertRegex(err_out.getvalue(), r'import bad\)syntax')
130 self.assertRegex(err_out.getvalue(), 'SyntaxError')
137 self.assertRegex(err_out.getvalue(), "line 2")
138 self.assertRegex(err_out.getvalue(),
141 self.assertRegex(err_out.getvalue(), 'Traceback')
142 self.assertRegex(err_out.getvalue(), 'ModuleNotFoundError')
149 self.assertRegex(err_out.getvalue(), "line 1")
[all …]
Dtest_subclassinit.py143 self.assertRegex(str(exc), r'\bNotGoingToWork\b')
144 self.assertRegex(str(exc), r'\battr\b')
145 self.assertRegex(str(exc), r'\bDescriptor\b')
158 self.assertRegex(str(exc), r'\bNotGoingToWork\b')
159 self.assertRegex(str(exc), r'\battr\b')
160 self.assertRegex(str(exc), r'\bDescriptor\b')
Dtest_keyword.py124 self.assertRegex(stderr, b'does not contain format markers')
129 self.assertRegex(stderr, b'(?ms)' + NONEXISTENT_FILE.encode())
134 self.assertRegex(stderr, b'(?ms)' + NONEXISTENT_FILE.encode())
Dtest_capi.py193 self.assertRegex(err.replace(b'\r', b''),
205 self.assertRegex(str(cm.exception),
220 self.assertRegex(err.replace(b'\r', b''),
237 self.assertRegex(str(cm.exception),
618 self.assertRegex(out, regex)
631 self.assertRegex(out, regex)
Dtest_concurrent_futures.py165 self.assertRegex(t.name, r'^SpecialPool_[0-4]$')
178 self.assertRegex(t.name, r'^.*ThreadPoolExecutor.*_[0-4]$')
624 self.assertRegex(repr(PENDING_FUTURE),
626 self.assertRegex(repr(RUNNING_FUTURE),
628 self.assertRegex(repr(CANCELLED_FUTURE),
630 self.assertRegex(repr(CANCELLED_AND_NOTIFIED_FUTURE),
632 self.assertRegex(
635 self.assertRegex(
Dtest_smtplib.py139 self.assertRegex(stderr.getvalue(), expected)
150 self.assertRegex(stderr.getvalue(), expected)
368 self.assertRegex(debugout, sender)
412 self.assertRegex(debugout, sender)
417 self.assertRegex(debugout, to_addr)
439 self.assertRegex(debugout, sender)
443 self.assertRegex(debugout, to_addr)
465 self.assertRegex(debugout, sender)
471 self.assertRegex(debugout, recip)
494 self.assertRegex(debugout, sender)
[all …]
Dtest_http_cookiejar.py31 self.assertRegex(text, r"^\d{4}-\d\d-\d\d \d\d:\d\d:\d\dZ$",
51 self.assertRegex(
1054 self.assertRegex(h, r"\$Port([^=]|$)",
1316 self.assertRegex(req.get_header("Cookie"),
1373 self.assertRegex(cookie,
1397 self.assertRegex(cookie, r'^\$Version="?1"?;')
1398 self.assertRegex(cookie, r'Part_Number="?Rocket_Launcher_0001"?;'
1400 self.assertRegex(cookie, r'Customer="?WILE_E_COYOTE"?;'
1422 self.assertRegex(cookie, r'Shipping="?FedEx"?;\s*\$Path="\/acme"')
1470 self.assertRegex(cookie, r"Riding_Rocket_0023.*Rocket_Launcher_0001")
[all …]
Dtest_compileall.py110 self.assertRegex(stdout.getvalue(), r'Compiling ([^WindowsPath|PosixPath].*)')
161 self.assertRegex(line, r'Listing ([^WindowsPath|PosixPath].*)')
449 self.assertRegex(out, b'File "dinsdale')
459 self.assertRegex(err, b'File "dinsdale')
464 self.assertRegex(out, b'rror.*nosuchfile')
513 self.assertRegex(out, b'rror')
520 self.assertRegex(out, b"Can't list 'badfilename'")
Dtest_faulthandler.py114 self.assertRegex(output, regex)
517 self.assertRegex(output, regex)
586 self.assertRegex(trace, regex)
688 self.assertRegex(trace, regex)
Dtest_cmd_line.py100 self.assertRegex(err, br'^\[\d+ refs, \d+ blocks\]')
341 self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError')
355 self.assertRegex(err.decode('ascii', 'ignore'),
Dtest_reprlib.py190 self.assertRegex(repr(x), r'<cell at 0x[0-9A-Fa-f]+: '
192 self.assertRegex(r(x), r'<cell at 0x.*\.\.\..*>')
Dtest_http_cookies.py460 self.assertRegex(repr(morsel),
463 self.assertRegex(str(morsel),
Dtest_threading.py105 self.assertRegex(repr(t), r'^<TestThread\(.*, initial\)>$')
115 self.assertRegex(repr(t), r'^<TestThread\(.*, stopped -?\d+\)>$')
175 self.assertRegex(repr(threading._active[tid]), '_DummyThread')
Dtest_dis.py620 self.assertRegex(dis.code_info(x), expected)
627 self.assertRegex(output.getvalue(), expected+"\n")
630 self.assertRegex(output.getvalue(), expected)
941 self.assertRegex(b.info(), expected)
Dtest_defaultdict.py159 self.assertRegex(repr(d),
Dtest_cmd_line_script.py443 self.assertRegex(err, regex)
454 self.assertRegex(err,
Dtest_argparse.py4654 self.assertRegex(msg, 'req_pos')
4655 self.assertRegex(msg, 'req_opt')
4656 self.assertRegex(msg, 'need_one')
4661 self.assertRegex(msg, 'req_opt')
4662 self.assertRegex(msg, 'need_one')
4668 self.assertRegex(msg, 'need_one')
4679 self.assertRegex(msg, 'req_pos')
4680 self.assertRegex(msg, 'req_opt')
4685 self.assertRegex(msg, 'req_pos')
4696 self.assertRegex(msg, 'req_pos')
Dlock_tests.py90 self.assertRegex(repr(lock), "<unlocked .* object (.*)?at .*>")
96 self.assertRegex(repr(lock), "<locked .* object (.*)?at .*>")
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_pep492.py152 self.assertRegex(
162 self.assertRegex(message,
171 self.assertRegex(repr(task), r'Task.*foo.*running')
Dtest_futures.py250 self.assertRegex(repr(f_one_callbacks),
261 self.assertRegex(repr(f_two_callbacks),
271 self.assertRegex(repr(f_many_callbacks),
442 self.assertRegex(message, re.compile(regex, re.DOTALL))
Dtest_tasks.py247 self.assertRegex(tb, r'foo\(\) running')
268 self.assertRegex(notmuch.__qualname__,
328 self.assertRegex(notmuch.__qualname__,
394 self.assertRegex(repr(task),
422 self.assertRegex(coro_repr, expected)
1877 self.assertRegex(message, re.compile(regex, re.DOTALL))
/external/python/cpython3/Lib/ctypes/test/
Dtest_macholib.py57 self.assertRegex(result, r".*/lib/libz\..*.*\.dylib")
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_main.py99 self.assertRegex(
Dtest_refactor.py228 self.assertRegex(message, message_regex)
/external/python/cpython3/Lib/tkinter/test/test_tkinter/
Dtest_variables.py34 self.assertRegex(str(v), r"^PY_VAR(\d+)$")

12