Searched refs:assertRegex (Results 1 – 25 of 64) sorted by relevance
123
/external/python/cpython3/Lib/test/ |
D | test_site.py | 139 self.assertRegex(err_out.getvalue(), "line 1") 140 self.assertRegex(err_out.getvalue(), 145 self.assertRegex(err_out.getvalue(), 'Traceback') 146 self.assertRegex(err_out.getvalue(), r'import bad\)syntax') 147 self.assertRegex(err_out.getvalue(), 'SyntaxError') 154 self.assertRegex(err_out.getvalue(), "line 2") 155 self.assertRegex(err_out.getvalue(), 158 self.assertRegex(err_out.getvalue(), 'Traceback') 159 self.assertRegex(err_out.getvalue(), 'ModuleNotFoundError') 166 self.assertRegex(err_out.getvalue(), "line 1") [all …]
|
D | test_subclassinit.py | 142 self.assertRegex(str(exc), r'\bNotGoingToWork\b') 143 self.assertRegex(str(exc), r'\battr\b') 144 self.assertRegex(str(exc), r'\bDescriptor\b') 157 self.assertRegex(str(exc), r'\bNotGoingToWork\b') 158 self.assertRegex(str(exc), r'\battr\b') 159 self.assertRegex(str(exc), r'\bDescriptor\b')
|
D | test_flufl.py | 13 self.assertRegex(str(cm.exception), 25 self.assertRegex(str(cm.exception), "invalid syntax")
|
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 | 191 self.assertRegex(err.replace(b'\r', b''), 203 self.assertRegex(str(cm.exception), 218 self.assertRegex(err.replace(b'\r', b''), 235 self.assertRegex(str(cm.exception), 476 self.assertRegex(out, regex) 491 self.assertRegex(out, regex)
|
D | test_frame.py | 194 self.assertRegex(repr(f_this), 197 self.assertRegex(repr(f_outer), 200 self.assertRegex(repr(f_inner),
|
D | test_smtplib.py | 136 self.assertRegex(stderr.getvalue(), expected) 147 self.assertRegex(stderr.getvalue(), expected) 369 self.assertRegex(debugout, sender) 418 self.assertRegex(debugout, sender) 423 self.assertRegex(debugout, to_addr) 446 self.assertRegex(debugout, sender) 450 self.assertRegex(debugout, to_addr) 473 self.assertRegex(debugout, sender) 479 self.assertRegex(debugout, recip) 503 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( 1106 self.assertRegex(h, r"\$Port([^=]|$)", 1368 self.assertRegex(req.get_header("Cookie"), 1425 self.assertRegex(cookie, 1449 self.assertRegex(cookie, r'^\$Version="?1"?;') 1450 self.assertRegex(cookie, r'Part_Number="?Rocket_Launcher_0001"?;' 1452 self.assertRegex(cookie, r'Customer="?WILE_E_COYOTE"?;' 1474 self.assertRegex(cookie, r'Shipping="?FedEx"?;\s*\$Path="\/acme"') 1522 self.assertRegex(cookie, r"Riding_Rocket_0023.*Rocket_Launcher_0001") [all …]
|
D | test_compileall.py | 116 self.assertRegex(stdout.getvalue(), r'Compiling ([^WindowsPath|PosixPath].*)') 167 self.assertRegex(line, r'Listing ([^WindowsPath|PosixPath].*)') 472 self.assertRegex(out, b'File "dinsdale') 482 self.assertRegex(err, b'File "dinsdale') 487 self.assertRegex(out, b'rror.*nosuchfile') 536 self.assertRegex(out, b'rror') 543 self.assertRegex(out, b"Can't list 'badfilename'")
|
D | test_faulthandler.py | 122 self.assertRegex(output, regex) 525 self.assertRegex(output, regex) 594 self.assertRegex(trace, regex) 696 self.assertRegex(trace, regex)
|
D | test_concurrent_futures.py | 380 self.assertRegex(t.name, r'^SpecialPool_[0-4]$') 392 self.assertRegex(t.name, r'ThreadPoolExecutor-\d+_[0-4]$') 1074 self.assertRegex(repr(PENDING_FUTURE), 1076 self.assertRegex(repr(RUNNING_FUTURE), 1078 self.assertRegex(repr(CANCELLED_FUTURE), 1080 self.assertRegex(repr(CANCELLED_AND_NOTIFIED_FUTURE), 1082 self.assertRegex( 1085 self.assertRegex(
|
D | test_cmd_line.py | 108 self.assertRegex(err, br'^\[\d+ refs, \d+ blocks\]') 345 self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError') 359 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 | 462 self.assertRegex(repr(morsel), 465 self.assertRegex(str(morsel),
|
D | test_argparse.py | 4701 self.assertRegex(msg, 'req_pos') 4702 self.assertRegex(msg, 'req_opt') 4703 self.assertRegex(msg, 'need_one') 4708 self.assertRegex(msg, 'req_opt') 4709 self.assertRegex(msg, 'need_one') 4715 self.assertRegex(msg, 'need_one') 4726 self.assertRegex(msg, 'req_pos') 4727 self.assertRegex(msg, 'req_opt') 4732 self.assertRegex(msg, 'req_pos') 4743 self.assertRegex(msg, 'req_pos') [all …]
|
D | test_threading.py | 104 self.assertRegex(repr(t), r'^<TestThread\(.*, initial\)>$') 114 self.assertRegex(repr(t), r'^<TestThread\(.*, stopped -?\d+\)>$') 176 self.assertRegex(repr(threading._active[tid]), '_DummyThread')
|
D | test_defaultdict.py | 159 self.assertRegex(repr(d),
|
D | test_dis.py | 768 self.assertRegex(dis.code_info(x), expected) 775 self.assertRegex(output.getvalue(), expected+"\n") 778 self.assertRegex(output.getvalue(), expected) 1091 self.assertRegex(b.info(), expected)
|
D | test_cmd_line_script.py | 433 self.assertRegex(err, regex) 444 self.assertRegex(err,
|
/external/fonttools/Tests/ttLib/tables/ |
D | _n_a_m_e_test.py | 103 captor.assertRegex("cannot add Windows name in language gsw-LI") 125 captor.assertRegex("cannot add Windows name in language la") 141 captor.assertRegex("cannot add Windows name in language la") 159 captor.assertRegex("cannot add Windows name in language az-Arab") 171 captor.assertRegex("cannot store language la into 'ltag' table")
|
D | T_S_I__1_test.py | 178 captor.assertRegex("nextTextOffset > totalLength")
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_macholib.py | 57 self.assertRegex(result, r".*/lib/libz\..*.*\.dylib")
|
/external/python/cpython3/Lib/test/test_asyncio/ |
D | test_futures.py | 305 self.assertRegex( 317 self.assertRegex(repr(f_two_callbacks), 327 self.assertRegex( 515 self.assertRegex(message, re.compile(regex, re.DOTALL))
|
/external/fonttools/Tests/pens/ |
D | basePen_test.py | 150 captor.assertRegex("glyph '.*' is missing from glyphSet; skipped")
|
/external/python/cpython3/Lib/lib2to3/tests/ |
D | test_main.py | 99 self.assertRegex(
|
123