Home
last modified time | relevance | path

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

123

/third_party/python/Lib/ctypes/test/
Dtest_parameters.py226 self.assertRegex(repr(c_bool.from_param(True)), r"^<cparam '\?' at 0x[A-Fa-f0-9]+>$")
228 self.assertRegex(repr(c_wchar.from_param('a')), r"^<cparam 'u' at 0x[A-Fa-f0-9]+>$")
233 self.assertRegex(repr(c_int.from_param(20000)), r"^<cparam '[li]' \(20000\)>$")
234 self.assertRegex(repr(c_uint.from_param(20000)), r"^<cparam '[LI]' \(20000\)>$")
235 self.assertRegex(repr(c_long.from_param(20000)), r"^<cparam '[li]' \(20000\)>$")
236 self.assertRegex(repr(c_ulong.from_param(20000)), r"^<cparam '[LI]' \(20000\)>$")
237 self.assertRegex(repr(c_longlong.from_param(20000)), r"^<cparam '[liq]' \(20000\)>$")
238 self.assertRegex(repr(c_ulonglong.from_param(20000)), r"^<cparam '[LIQ]' \(20000\)>$")
242 …self.assertRegex(repr(c_longdouble.from_param(1.5)), r"^<cparam ('d' \(1.5\)|'g' at 0x[A-Fa-f0-9]+…
243 self.assertRegex(repr(c_char_p.from_param(b'hihi')), r"^<cparam 'z' \(0x[A-Fa-f0-9]+\)>$")
[all …]
Dtest_macholib.py59 self.assertRegex(result, r".*/lib/libz.*\.dylib")
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/regex/
DRegexGeneratorTest.java37 assertRegex(basic(), ranges("123xxx"), "123\\d{3}"); in testSimple()
39 assertRegex(basic().withDotMatch(), ranges("123xxx"), "123.{3}"); in testSimple()
44 assertRegex(basic(), ranges("123xxx", "123xxxx", "123xxxxx", "123xxxxxx"), "123\\d{3,6}"); in testVariableLength()
50 assertRegex(basic(), dfa, "1(?:23\\d{3,4}|45\\d{3})"); in testTailOptimization()
51 assertRegex(basic().withTailOptimization(), dfa, "1(?:23\\d?|45)\\d{3}"); in testTailOptimization()
59 assertRegex(basic(), dfa, in testDfaFactorization()
65 assertRegex(basic().withDfaFactorization(), dfa, "[0-4]\\d{6,7}|12(?:34|56)\\d"); in testDfaFactorization()
83 assertRegex(basic(), dfa, in testSubgroupOptimization()
90 assertRegex(basic().withSubgroupOptimization(), dfa, in testSubgroupOptimization()
104 assertRegex(basic(), dfa, in testRegression_bug_65250963()
[all …]
/third_party/python/Lib/test/
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_site.py145 self.assertRegex(err_out.getvalue(), "line 1")
146 self.assertRegex(err_out.getvalue(),
151 self.assertRegex(err_out.getvalue(), 'Traceback')
152 self.assertRegex(err_out.getvalue(), r'import bad-syntax')
153 self.assertRegex(err_out.getvalue(), 'SyntaxError')
160 self.assertRegex(err_out.getvalue(), "line 2")
161 self.assertRegex(err_out.getvalue(),
164 self.assertRegex(err_out.getvalue(), 'Traceback')
165 self.assertRegex(err_out.getvalue(), 'ModuleNotFoundError')
Dtest_flufl.py15 self.assertRegex(str(cm.exception),
30 self.assertRegex(str(cm.exception), "invalid syntax")
Dtest_frame.py215 self.assertRegex(repr(f_this),
218 self.assertRegex(repr(f_outer),
221 self.assertRegex(repr(f_inner),
Dtest_capi.py215 self.assertRegex(err,
227 self.assertRegex(str(cm.exception),
243 self.assertRegex(err,
261 self.assertRegex(str(cm.exception),
279 self.assertRegex(err,
387 self.assertRegex(err,
881 self.assertRegex(out, regex)
896 self.assertRegex(out, regex)
Dtest_http_cookiejar.py34 self.assertRegex(text, r"^\d{4}-\d\d-\d\d \d\d:\d\d:\d\dZ$",
54 self.assertRegex(
1210 self.assertRegex(h, r"\$Port([^=]|$)",
1472 self.assertRegex(req.get_header("Cookie"),
1529 self.assertRegex(cookie,
1553 self.assertRegex(cookie, r'^\$Version="?1"?;')
1554 self.assertRegex(cookie, r'Part_Number="?Rocket_Launcher_0001"?;'
1556 self.assertRegex(cookie, r'Customer="?WILE_E_COYOTE"?;'
1578 self.assertRegex(cookie, r'Shipping="?FedEx"?;\s*\$Path="\/acme"')
1626 self.assertRegex(cookie, r"Riding_Rocket_0023.*Rocket_Launcher_0001")
[all …]
Dtest_smtplib.py149 self.assertRegex(stderr.getvalue(), expected)
160 self.assertRegex(stderr.getvalue(), expected)
492 self.assertRegex(debugout, sender)
545 self.assertRegex(debugout, sender)
550 self.assertRegex(debugout, to_addr)
575 self.assertRegex(debugout, sender)
579 self.assertRegex(debugout, to_addr)
604 self.assertRegex(debugout, sender)
610 self.assertRegex(debugout, recip)
636 self.assertRegex(debugout, sender)
[all …]
Dtest_gc.py1201 self.assertRegex(stderr,
1203 self.assertRegex(stderr,
1208 self.assertRegex(stderr,
1210 self.assertRegex(stderr,
1212 self.assertRegex(stderr,
1214 self.assertRegex(stderr,
1216 self.assertRegex(stderr,
Dtest_faulthandler.py128 self.assertRegex(output, regex)
591 self.assertRegex(output, regex)
658 self.assertRegex(trace, regex)
760 self.assertRegex(trace, regex)
Dtest_concurrent_futures.py469 self.assertRegex(t.name, r'^SpecialPool_[0-4]$')
482 self.assertRegex(t.name, r'ThreadPoolExecutor-\d+_[0-4]$')
1375 self.assertRegex(repr(PENDING_FUTURE),
1377 self.assertRegex(repr(RUNNING_FUTURE),
1379 self.assertRegex(repr(CANCELLED_FUTURE),
1381 self.assertRegex(repr(CANCELLED_AND_NOTIFIED_FUTURE),
1383 self.assertRegex(
1386 self.assertRegex(
Dtest_compileall.py162 self.assertRegex(stdout.getvalue(), r'Compiling ([^WindowsPath|PosixPath].*)')
221 self.assertRegex(line, r'Listing ([^WindowsPath|PosixPath].*)')
710 self.assertRegex(out, b'File "dinsdale')
720 self.assertRegex(err, b'File "dinsdale')
725 self.assertRegex(out, b'rror.*nosuchfile')
774 self.assertRegex(out, b'rror')
781 self.assertRegex(out, b"Can't list 'badfilename'")
Dtest_argparse.py2069 self.assertRegex(
2081 self.assertRegex(
4937 self.assertRegex(msg, 'req_pos')
4938 self.assertRegex(msg, 'req_opt')
4939 self.assertRegex(msg, 'need_one')
4944 self.assertRegex(msg, 'req_opt')
4945 self.assertRegex(msg, 'need_one')
4951 self.assertRegex(msg, 'need_one')
4962 self.assertRegex(msg, 'req_pos')
4963 self.assertRegex(msg, 'req_opt')
[all …]
Dtest_reprlib.py191 self.assertRegex(repr(x), r'<cell at 0x[0-9A-Fa-f]+: '
193 self.assertRegex(r(x), r'<cell at 0x.*\.\.\..*>')
Dtest_http_cookies.py475 self.assertRegex(repr(morsel),
478 self.assertRegex(str(morsel),
Dtest_cmd_line.py113 self.assertRegex(err, br'^\[\d+ refs, \d+ blocks\]')
407 self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError')
421 self.assertRegex(err.decode('ascii', 'ignore'),
/third_party/node/deps/v8/tools/unittests/
Dcompare_torque_output_test.py37 self.assertRegex(output.decode('utf-8'), re.compile(full_match, re.M | re.S))
47 self.assertRegex(output.decode('utf-8'), r'Some files exist only in.*f2\nfile3')
52 self.assertRegex(output.decode('utf-8'), r'Some files exist only in.*f1\nfile4')
/third_party/googletest/googletest/test/
Dgoogletest-global-environment-unittest.py98 self.assertRegex(txt, expected_pattern)
122 self.assertRegex(txt, expected_pattern)
/third_party/python/Lib/test/test_importlib/
Dtest_metadata_api.py197 assertRegex = self.assertRegex
200 assertRegex(repr(util.hash), '<FileHash mode: sha256 value: .*>')
/third_party/lz4/tests/
Dtest-lz4-list.py76 self.assertRegex(nvinfo.block, "^B[0-9]+D$", nvinfo.line)
78 self.assertRegex(nvinfo.block, "^B[0-9]+I$", nvinfo.line)
143 …self.assertRegex(vinfo.filename, f"^test_list_.*({i + 1}/{len(self.vinfo_list)})".format(i + 1, le…
162 …self.assertRegex(self.cvinfo.frame_list[i]["block"], "^B[0-9]+D$", self.cvinfo.frame_list[i]["line…
/third_party/python/Lib/test/test_asyncio/
Dtest_futures.py347 self.assertRegex(
359 self.assertRegex(repr(f_two_callbacks),
369 self.assertRegex(
582 self.assertRegex(message, re.compile(regex, re.DOTALL))
/third_party/python/Lib/test/support/
Dwarnings_helper.py21 testcase.assertRegex(str(warn.message), errtext)
/third_party/python/Lib/distutils/tests/
Dtest_build_ext.py319 self.assertRegex(cmd.get_ext_filename(modules[0].name), r'foo(_d)?\..*')
320 self.assertRegex(cmd.get_ext_filename(modules[1].name), r'föö(_d)?\..*')

123