Home
last modified time | relevance | path

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

12345

/external/tensorflow/tensorflow/python/compiler/mlir/
Dmlir_test.py57 self.assertRegex(mlir_module, r'func @.*sqr.*\(')
58 self.assertRegex(mlir_module, r'callsite\(".*mlir_test.py":')
74 self.assertRegex(mlir_module, r'func @.*caller.*\(')
75 self.assertRegex(mlir_module, r'func private @.*callee.*\(')
86 self.assertRegex(mlir_module, r'tf\.PrintV2')
87 self.assertRegex(mlir_module, r'tf_executor.fetch.*: !tf_executor.control')
/external/tensorflow/tensorflow/python/distribute/
Dparameter_server_strategy_v2_test.py184 self.assertRegex(v1.variables[0].device, "/job:ps/replica:0/task:0")
185 self.assertRegex(v1.variables[1].device, "/job:ps/replica:0/task:1")
191 self.assertRegex(v2.variables[0].device, "/job:ps/replica:0/task:0")
192 self.assertRegex(v2.variables[1].device, "/job:ps/replica:0/task:1")
204 self.assertRegex(v.variables[0].device, "/job:ps/replica:0/task:0")
205 self.assertRegex(v.variables[1].device, "/job:ps/replica:0/task:1")
206 self.assertRegex(v.variables[2].device, "/job:ps/replica:0/task:0")
207 self.assertRegex(v.variables[3].device, "/job:ps/replica:0/task:1")
221 self.assertRegex(v.variables[0].device, "/job:ps/replica:0/task:0")
222 self.assertRegex(v.variables[1].device, "/job:ps/replica:0/task:1")
[all …]
/external/tensorflow/tensorflow/lite/tools/
Dvisualize_test.py62 self.assertRegex(
64 self.assertRegex(html_text,
66 self.assertRegex(html_text,
68 self.assertRegex(html_text, re.compile(r'ADD', re.MULTILINE | re.DOTALL))
/external/tensorflow/tensorflow/python/util/
Ddeprecation_test.py45 self.assertRegex(mock_warning.call_args[0][1], r"deprecation_test\.py:")
72 self.assertRegex(mock_warning.call_args[0][1], r"deprecation_test\.py:")
239 self.assertRegex(args[0], r"deprecated and will be removed")
281 self.assertRegex(args[0], r"deprecated and will be removed")
307 self.assertRegex(args[0], r"deprecated and will be removed")
333 self.assertRegex(args[0], r"deprecated and will be removed")
378 self.assertRegex(args[0], r"deprecated and will be removed")
408 self.assertRegex(args[0], r"deprecated and will be removed")
438 self.assertRegex(args[0], r"deprecated and will be removed")
493 self.assertRegex(args[0], r"deprecated and will be removed")
[all …]
Dfunction_utils_test.py256 self.assertRegex(
262 self.assertRegex(
279 self.assertRegex(code.co_filename, 'function_utils_test.py')
284 self.assertRegex(code.co_filename, 'function_utils_test.py')
290 self.assertRegex(code.co_filename, 'function_utils_test.py')
296 self.assertRegex(code.co_filename, 'function_utils_test.py')
/external/toolchain-utils/crosperf/
Dexperiment_file_unittest.py234 self.assertRegex(str(msg.exception), 'governor: misspelled_governor')
235 self.assertRegex(
244 self.assertRegex(str(msg.exception), 'cpu_usage: unknown')
245 self.assertRegex(
/external/tensorflow/tensorflow/python/autograph/pyct/
Derror_utils_test.py73 self.assertRegex(
99 self.assertRegex(
118 self.assertRegex(
/external/python/cpython3/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_flufl.py15 self.assertRegex(str(cm.exception),
30 self.assertRegex(str(cm.exception), "invalid syntax")
Dtest_site.py140 self.assertRegex(err_out.getvalue(), "line 1")
141 self.assertRegex(err_out.getvalue(),
146 self.assertRegex(err_out.getvalue(), 'Traceback')
147 self.assertRegex(err_out.getvalue(), r'import bad-syntax')
148 self.assertRegex(err_out.getvalue(), 'SyntaxError')
155 self.assertRegex(err_out.getvalue(), "line 2")
156 self.assertRegex(err_out.getvalue(),
159 self.assertRegex(err_out.getvalue(), 'Traceback')
160 self.assertRegex(err_out.getvalue(), 'ModuleNotFoundError')
Dtest_frame.py194 self.assertRegex(repr(f_this),
197 self.assertRegex(repr(f_outer),
200 self.assertRegex(repr(f_inner),
Dtest_capi.py207 self.assertRegex(err.replace(b'\r', b''),
221 self.assertRegex(str(cm.exception),
236 self.assertRegex(err.replace(b'\r', b''),
255 self.assertRegex(str(cm.exception),
351 self.assertRegex(err,
738 self.assertRegex(out, regex)
753 self.assertRegex(out, regex)
Dtest_smtplib.py145 self.assertRegex(stderr.getvalue(), expected)
156 self.assertRegex(stderr.getvalue(), expected)
422 self.assertRegex(debugout, sender)
475 self.assertRegex(debugout, sender)
480 self.assertRegex(debugout, to_addr)
505 self.assertRegex(debugout, sender)
509 self.assertRegex(debugout, to_addr)
534 self.assertRegex(debugout, sender)
540 self.assertRegex(debugout, recip)
566 self.assertRegex(debugout, sender)
[all …]
/external/python/cpython3/Lib/test/test_importlib/
Dtest_metadata_api.py76 assertRegex = self.assertRegex
82 assertRegex(
/external/tensorflow/tensorflow/python/framework/
Dversions_test.py31 self.assertRegex(versions.__version__, r'^\d+\.\d+\.(\d+(\-\w+)?|head)$')
32 self.assertRegex(versions.VERSION, r'^\d+\.\d+\.(\d+(\-\w+)?|head)$')
Derror_interpolation_test.py241 self.assertRegex(
255 self.assertRegex(interpolated_string, expected_regex)
264 self.assertRegex(interpolated_string,
280 self.assertRegex(interpolated_string, expected_regex)
293 self.assertRegex(interpolated_string, expected_regex)
336 self.assertRegex(result, expected_re)
Dpy_context_manager_test.py79 self.assertRegex("\n".join(cm.log), EXCEPTION_LOG)
114 self.assertRegex("\n".join(cm.log), EXCEPTION_LOG)
/external/llvm-project/clang/bindings/python/tests/cindex/
Dtest_diagnostics.py44 self.assertRegex(tu.diagnostics[0].spelling,
59 self.assertRegex(tu.diagnostics[0].spelling,
100 self.assertRegex(children[0].spelling,
/external/tensorflow/tensorflow/python/debug/cli/
Dprofile_analyzer_cli_test.py214 self.assertRegex("".join(prof_output), r"Mul/456.*Add/123")
217 self.assertRegex("".join(prof_output), r"Add/123.*Mul/456")
220 self.assertRegex("".join(prof_output), r"Add/123.*Mul/456")
223 self.assertRegex("".join(prof_output), r"Mul/456.*Add/123")
226 self.assertRegex("".join(prof_output), r"Add/123.*Mul/456")
229 self.assertRegex("".join(prof_output), r"Mul/456.*Add/123")
/external/tensorflow/tensorflow/python/keras/mixed_precision/
Ddevice_compatibility_check_test.py48 self.assertRegex(mock_warn.call_args[0][0], expected_regex)
51 self.assertRegex(mock_info.call_args[0][0], expected_regex)
/external/fonttools/Tests/ttLib/tables/
D_n_a_m_e_test.py227 captor.assertRegex("cannot add Windows name in language gsw-LI")
249 captor.assertRegex("cannot add Windows name in language la")
265 captor.assertRegex("cannot add Windows name in language la")
283 captor.assertRegex("cannot add Windows name in language az-Arab")
295 captor.assertRegex("cannot store language la into 'ltag' table")
/external/lz4/tests/
Dtest-lz4-list.py72 self.assertRegex(nvinfo.block, "^B[0-9]+D$", nvinfo.line)
74 self.assertRegex(nvinfo.block, "^B[0-9]+I$", nvinfo.line)
137 … self.assertRegex(vinfo.filename, "^test_list_.*({}/{})".format(i + 1, len(self.vinfo_list)))
156 …self.assertRegex(self.cvinfo.frame_list[i]["block"], "^B[0-9]+D$", self.cvinfo.frame_list[i]["line…
/external/fonttools/Tests/feaLib/
Dbuilder_test.py218 captor.assertRegex('Removing duplicate single substitution from glyph "A" to "A.sc"')
240 …captor.assertRegex(r"Removing duplicate multiple substitution from glyph \"f_f_i\" to \('f', 'f', …
256 captor.assertRegex("Already defined position for pair yacute semicolon")
795 captor.assertRegex(
830 captor.assertRegex('Already defined position for pair A V at')
/external/python/asn1crypto/tests/
D_unittest_compat.py27 unittest.TestCase.assertRegex = _assert_regex
36 unittest.TestCase.assertRegex = unittest.TestCase.assertRegexpMatches
/external/python/cpython3/Lib/ctypes/test/
Dtest_macholib.py59 self.assertRegex(result, r".*/lib/libz.*\.dylib")

12345