Home
last modified time | relevance | path

Searched refs:assertRaisesRegexp (Results 1 – 25 of 107) sorted by relevance

12345

/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dparser_unittest.py64 with self.assertRaisesRegexp(
79 with self.assertRaisesRegexp(
96 with self.assertRaisesRegexp(
108 with self.assertRaisesRegexp(
125 with self.assertRaisesRegexp(
209 with self.assertRaisesRegexp(
222 with self.assertRaisesRegexp(
235 with self.assertRaisesRegexp(
251 with self.assertRaisesRegexp(
266 with self.assertRaisesRegexp(
[all …]
Dlexer_unittest.py101 with self.assertRaisesRegexp(
105 with self.assertRaisesRegexp(
/external/python/cpython2/Lib/lib-tk/test/test_tkinter/
Dtest_geometry_managers.py29 with self.assertRaisesRegexp(TclError, 'window "%s" isn\'t packed' % b):
31 with self.assertRaisesRegexp(TclError, 'bad window path name ".foo"'):
62 with self.assertRaisesRegexp(TclError, 'window "%s" isn\'t packed' % b):
64 with self.assertRaisesRegexp(TclError, 'bad window path name ".foo"'):
111 with self.assertRaisesRegexp(TclError,
114 with self.assertRaisesRegexp(TclError, 'bad window path name ".foo"'):
229 with self.assertRaisesRegexp(TclError, 'window "%s" isn\'t packed' % a):
295 with self.assertRaisesRegexp(TclError, "can't place %s relative to "
300 with self.assertRaisesRegexp(TclError, 'bad window path name'):
319 with self.assertRaisesRegexp(TclError, 'bad screen distance "spam"'):
[all …]
/external/autotest/utils/side_effects/
Dconfig_loader_unittest.py65 with self.assertRaisesRegexp(Exception, 'JSON'):
89 with self.assertRaisesRegexp(ValueError, 'proxy socket'):
94 with self.assertRaisesRegexp(ValueError, 'MySQL user'):
99 with self.assertRaisesRegexp(ValueError, 'MySQL password'):
104 with self.assertRaisesRegexp(OSError, 'proxy socket'):
109 with self.assertRaisesRegexp(OSError, 'MySQL password'):
132 with self.assertRaisesRegexp(ValueError, 'bucket'):
137 with self.assertRaisesRegexp(ValueError, 'credentials'):
142 with self.assertRaisesRegexp(OSError, 'credentials'):
/external/autotest/client/cros/power/
Dpower_telemetry_utils_unittest.py28 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
75 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
86 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
97 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
108 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
138 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
152 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
/external/python/cpython2/Lib/test/
Dtest_source_encoding.py50 with self.assertRaisesRegexp(SyntaxError, 'fake'):
52 with self.assertRaisesRegexp(SyntaxError, 'iso-8859-15'):
55 with self.assertRaisesRegexp(SyntaxError, 'BOM'):
58 with self.assertRaisesRegexp(SyntaxError, 'fake'):
60 with self.assertRaisesRegexp(SyntaxError, 'BOM'):
64 with self.assertRaisesRegexp(SyntaxError,
Dtest_dictcomps.py78 with self.assertRaisesRegexp(SyntaxError, "can't assign"):
82 with self.assertRaisesRegexp(SyntaxError, "can't assign"):
Dtest_test_support.py37 with self.assertRaisesRegexp(unittest.SkipTest, 'unittest'):
39 with self.assertRaisesRegexp(unittest.SkipTest, 'ClassicClass'):
41 with self.assertRaisesRegexp(unittest.SkipTest, 'ClassicClass'):
43 with self.assertRaisesRegexp(unittest.SkipTest, 'NewStyleClass'):
45 with self.assertRaisesRegexp(unittest.SkipTest, 'NewStyleClass'):
Dtest_ssl.py356 self.assertRaisesRegexp(ValueError,
359 self.assertRaisesRegexp(ValueError,
362 self.assertRaisesRegexp(ValueError,
366 self.assertRaisesRegexp(ValueError, "can't connect in server-side mode",
634 with self.assertRaisesRegexp(ValueError, "unknown NID 100000"):
653 with self.assertRaisesRegexp(ValueError, "unknown object 'serverauth'"):
770 with self.assertRaisesRegexp(ssl.SSLError, "No cipher can be selected"):
837 with self.assertRaisesRegexp(ssl.SSLError, "PEM lib"):
839 with self.assertRaisesRegexp(ssl.SSLError, "PEM lib"):
846 with self.assertRaisesRegexp(ssl.SSLError, "PEM lib"):
[all …]
Dtest_zlib.py120 with self.assertRaisesRegexp(OverflowError, 'int too large'):
122 with self.assertRaisesRegexp(OverflowError, 'int too large'):
124 with self.assertRaisesRegexp(OverflowError, 'int too large'):
175 self.assertRaisesRegexp(zlib.error,
649 with self.assertRaisesRegexp(zlib.error, 'invalid window size'):
654 with self.assertRaisesRegexp(zlib.error, 'invalid window size'):
Dstring_tests.py1300 self.assertRaisesRegexp(TypeError, r'\bfind\b', s.find,
1302 self.assertRaisesRegexp(TypeError, r'\brfind\b', s.rfind,
1304 self.assertRaisesRegexp(TypeError, r'\bindex\b', s.index,
1306 self.assertRaisesRegexp(TypeError, r'\brindex\b', s.rindex,
1308 self.assertRaisesRegexp(TypeError, r'^count\(', s.count,
1310 self.assertRaisesRegexp(TypeError, r'^startswith\(', s.startswith,
1312 self.assertRaisesRegexp(TypeError, r'^endswith\(', s.endswith,
/external/tensorflow/tensorflow/python/framework/
Dpy_context_manager_test.py73 with self.assertRaisesRegexp(ValueError, "Foo"):
83 with self.assertRaisesRegexp(ValueError, "exception in __enter__"):
106 with self.assertRaisesRegexp(
/external/python/cpython2/Lib/unittest/test/
Dtest_case.py1005 self.assertRaisesRegexp(ExceptionMock, re.compile('expect$'), Stub)
1006 self.assertRaisesRegexp(ExceptionMock, 'expect$', Stub)
1007 self.assertRaisesRegexp(ExceptionMock, u'expect$', Stub)
1010 self.assertRaisesRegexp(
1012 self.assertRaisesRegexp, Exception, re.compile('x'),
1014 self.assertRaisesRegexp(
1016 self.assertRaisesRegexp, Exception, 'x',
1018 self.assertRaisesRegexp(
1020 self.assertRaisesRegexp, Exception, u'x',
1027 self.assertRaises(TypeError, self.assertRaisesRegexp, MyExc, lambda: True)
[all …]
/external/autotest/client/cros/cellular/mbim_compliance/
Dusb_descriptors_unittest.py33 with self.assertRaisesRegexp(
64 with self.assertRaisesRegexp(
77 with self.assertRaisesRegexp(
89 with self.assertRaisesRegexp(
94 with self.assertRaisesRegexp(
106 with self.assertRaisesRegexp(
Dmbim_message_unittest.py39 with self.assertRaisesRegexp(
53 with self.assertRaisesRegexp(
64 with self.assertRaisesRegexp(
99 with self.assertRaisesRegexp(
/external/autotest/client/cros/video/
Dhistogram_verifier_unittest.py124 with self.assertRaisesRegexp(
136 with self.assertRaisesRegexp(
149 with self.assertRaisesRegexp(
/external/python/cpython2/Lib/json/tests/
Dtest_decode.py56 self.assertRaisesRegexp(ValueError, msg, self.loads, s)
61 self.assertRaisesRegexp(ValueError, msg, self.loads, s)
/external/tensorflow/tensorflow/python/kernel_tests/array_ops/
Dunique_op_test.py125 with self.assertRaisesRegexp(ValueError, "axis expects a 1D vector"):
128 with self.assertRaisesRegexp(ValueError, "x expects a 1D vector"):
131 with self.assertRaisesRegexp(
135 with self.assertRaisesRegexp(ValueError,
139 with self.assertRaisesRegexp(ValueError,
/external/fonttools/Tests/pens/
D__init__.py13 unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp
/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_asserts.py15 assertRaisesRegexp="assertRaisesRegex",
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_asserts.py15 assertRaisesRegexp="assertRaisesRegex",
/external/tensorflow/tensorflow/python/debug/lib/
Dsession_debug_testlib.py309 with self.assertRaisesRegexp(
743 with self.assertRaisesRegexp(ValueError,
772 with self.assertRaisesRegexp(
826 with self.assertRaisesRegexp(
829 with self.assertRaisesRegexp(
841 with self.assertRaisesRegexp(
946 with self.assertRaisesRegexp(ValueError, "Causality violated"):
1326 with self.assertRaisesRegexp(
1338 with self.assertRaisesRegexp(
1350 with self.assertRaisesRegexp(
[all …]
/external/llvm/bindings/python/llvm/tests/
Dtest_disassembler.py20 with self.assertRaisesRegexp(Exception, "Could not obtain disassembler for triple"):
/external/autotest/client/common_lib/
Dutils_unittest.py1333 with self.assertRaisesRegexp(Exception, 'from args'):
1345 with self.assertRaisesRegexp(Exception, 'always raise'):
1364 with self.assertRaisesRegexp(
1396 with self.assertRaisesRegexp(
1409 with self.assertRaisesRegexp(
1416 with self.assertRaisesRegexp(
1428 with self.assertRaisesRegexp(
1442 with self.assertRaisesRegexp(
1460 with self.assertRaisesRegexp(
/external/tensorflow/tensorflow/python/distribute/
Dparameter_server_strategy_v2_test.py661 with self.assertRaisesRegexp(ValueError, "Disallowed task type found in"):
669 with self.assertRaisesRegexp(ValueError, "Unrecognized task_type: foobar"):
682 with self.assertRaisesRegexp(ValueError,
691 with self.assertRaisesRegexp(ValueError,
703 with self.assertRaisesRegexp(ValueError, "There must be at least one ps."):

12345