Home
last modified time | relevance | path

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

123

/external/python/cpython3/Lib/test/
Dtest_site.py139 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 …]
Dtest_subclassinit.py142 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')
Dtest_flufl.py13 self.assertRegex(str(cm.exception),
25 self.assertRegex(str(cm.exception), "invalid syntax")
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.py191 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)
Dtest_frame.py194 self.assertRegex(repr(f_this),
197 self.assertRegex(repr(f_outer),
200 self.assertRegex(repr(f_inner),
Dtest_smtplib.py136 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 …]
Dtest_http_cookiejar.py31 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 …]
Dtest_compileall.py116 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'")
Dtest_faulthandler.py122 self.assertRegex(output, regex)
525 self.assertRegex(output, regex)
594 self.assertRegex(trace, regex)
696 self.assertRegex(trace, regex)
Dtest_concurrent_futures.py380 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(
Dtest_cmd_line.py108 self.assertRegex(err, br'^\[\d+ refs, \d+ blocks\]')
345 self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError')
359 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.py462 self.assertRegex(repr(morsel),
465 self.assertRegex(str(morsel),
Dtest_argparse.py4701 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 …]
Dtest_threading.py104 self.assertRegex(repr(t), r'^<TestThread\(.*, initial\)>$')
114 self.assertRegex(repr(t), r'^<TestThread\(.*, stopped -?\d+\)>$')
176 self.assertRegex(repr(threading._active[tid]), '_DummyThread')
Dtest_defaultdict.py159 self.assertRegex(repr(d),
Dtest_dis.py768 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)
Dtest_cmd_line_script.py433 self.assertRegex(err, regex)
444 self.assertRegex(err,
/external/fonttools/Tests/ttLib/tables/
D_n_a_m_e_test.py103 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")
DT_S_I__1_test.py178 captor.assertRegex("nextTextOffset > totalLength")
/external/python/cpython3/Lib/ctypes/test/
Dtest_macholib.py57 self.assertRegex(result, r".*/lib/libz\..*.*\.dylib")
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_futures.py305 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/
DbasePen_test.py150 captor.assertRegex("glyph '.*' is missing from glyphSet; skipped")
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_main.py99 self.assertRegex(

123