Searched refs:assertRegex (Results 1 – 25 of 46) sorted by relevance
12
/external/python/cpython3/Lib/test/ |
D | test_site.py | 122 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 …]
|
D | test_subclassinit.py | 143 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')
|
D | test_keyword.py | 124 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())
|
D | test_capi.py | 193 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)
|
D | test_concurrent_futures.py | 165 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(
|
D | test_smtplib.py | 139 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 …]
|
D | test_http_cookiejar.py | 31 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 …]
|
D | test_compileall.py | 110 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'")
|
D | test_faulthandler.py | 114 self.assertRegex(output, regex) 517 self.assertRegex(output, regex) 586 self.assertRegex(trace, regex) 688 self.assertRegex(trace, regex)
|
D | test_cmd_line.py | 100 self.assertRegex(err, br'^\[\d+ refs, \d+ blocks\]') 341 self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError') 355 self.assertRegex(err.decode('ascii', 'ignore'),
|
D | test_reprlib.py | 190 self.assertRegex(repr(x), r'<cell at 0x[0-9A-Fa-f]+: ' 192 self.assertRegex(r(x), r'<cell at 0x.*\.\.\..*>')
|
D | test_http_cookies.py | 460 self.assertRegex(repr(morsel), 463 self.assertRegex(str(morsel),
|
D | test_threading.py | 105 self.assertRegex(repr(t), r'^<TestThread\(.*, initial\)>$') 115 self.assertRegex(repr(t), r'^<TestThread\(.*, stopped -?\d+\)>$') 175 self.assertRegex(repr(threading._active[tid]), '_DummyThread')
|
D | test_dis.py | 620 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)
|
D | test_defaultdict.py | 159 self.assertRegex(repr(d),
|
D | test_cmd_line_script.py | 443 self.assertRegex(err, regex) 454 self.assertRegex(err,
|
D | test_argparse.py | 4654 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')
|
D | lock_tests.py | 90 self.assertRegex(repr(lock), "<unlocked .* object (.*)?at .*>") 96 self.assertRegex(repr(lock), "<locked .* object (.*)?at .*>")
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_pep492.py | 152 self.assertRegex( 162 self.assertRegex(message, 171 self.assertRegex(repr(task), r'Task.*foo.*running')
|
D | test_futures.py | 250 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))
|
D | test_tasks.py | 247 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/ |
D | test_macholib.py | 57 self.assertRegex(result, r".*/lib/libz\..*.*\.dylib")
|
/external/python/cpython3/Lib/lib2to3/tests/ |
D | test_main.py | 99 self.assertRegex(
|
D | test_refactor.py | 228 self.assertRegex(message, message_regex)
|
/external/python/cpython3/Lib/tkinter/test/test_tkinter/ |
D | test_variables.py | 34 self.assertRegex(str(v), r"^PY_VAR(\d+)$")
|
12