Home
last modified time | relevance | path

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

123456

/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 …]
/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.py25 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
72 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
83 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
94 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
105 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
130 with self.assertRaisesRegexp(power_telemetry_utils.TelemetryUtilsError,
144 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 …]
/external/yapf/yapftests/
Dstyle_test.py198 with self.assertRaisesRegexp(style.StyleConfigError,
208 with self.assertRaisesRegexp(style.StyleConfigError,
219 with self.assertRaisesRegexp(style.StyleConfigError,
241 self.assertRaisesRegexp(style.StyleConfigError, 'Unknown style option',
244 self.assertRaisesRegexp(style.StyleConfigError, 'not a valid',
280 self.assertRaisesRegexp(style.StyleConfigError, 'Unknown style option',
283 self.assertRaisesRegexp(style.StyleConfigError, 'not a valid',
285 self.assertRaisesRegexp(style.StyleConfigError, 'Invalid style dict',
Dmain_test.py102 with self.assertRaisesRegexp(yapf.errors.YapfError,
127 with self.assertRaisesRegexp(SyntaxError, 'unexpected indent'):
/external/protobuf/python/google/protobuf/internal/
Djson_format_test.py107 self.assertRaisesRegexp(
794 self.assertRaisesRegexp(
840 self.assertRaisesRegexp(
922 self.assertRaisesRegexp(
927 self.assertRaisesRegexp(
933 self.assertRaisesRegexp(
940 self.assertRaisesRegexp(
945 self.assertRaisesRegexp(
954 self.assertRaisesRegexp(
961 self.assertRaisesRegexp(
[all …]
Dwell_known_types_test.py310 self.assertRaisesRegexp(
315 self.assertRaisesRegexp(
321 self.assertRaisesRegexp(
326 self.assertRaisesRegexp(
331 self.assertRaisesRegexp(
336 self.assertRaisesRegexp(
342 self.assertRaisesRegexp(
349 self.assertRaisesRegexp(
353 self.assertRaisesRegexp(
358 self.assertRaisesRegexp(
[all …]
/external/tensorflow/tensorflow/python/framework/
Dpy_context_manager_test.py77 with self.assertRaisesRegexp(ValueError, "Foo"):
87 with self.assertRaisesRegexp(ValueError, "exception in __enter__"):
110 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/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/test/
Dtest_case.py1179 self.assertRaisesRegexp(ExceptionMock, re.compile('expect$'), Stub)
1180 self.assertRaisesRegexp(ExceptionMock, 'expect$', Stub)
1181 self.assertRaisesRegexp(ExceptionMock, u'expect$', Stub)
1184 self.assertRaisesRegexp(
1186 self.assertRaisesRegexp, Exception, re.compile('x'),
1188 self.assertRaisesRegexp(
1190 self.assertRaisesRegexp, Exception, 'x',
1192 self.assertRaisesRegexp(
1194 self.assertRaisesRegexp, Exception, u'x',
1201 self.assertRaisesRegexp(
[all …]
/external/tensorflow/tensorflow/python/distribute/
Dparameter_server_strategy_v2_test.py79 with self.assertRaisesRegexp(
87 with self.assertRaisesRegexp(
438 with self.assertRaisesRegexp(ValueError, "Disallowed task type found in"):
449 with self.assertRaisesRegexp(ValueError, "Disallowed task type found in"):
460 with self.assertRaisesRegexp(ValueError, "Disallowed task type found in"):
471 with self.assertRaisesRegexp(ValueError, "Unrecognized task_type: foobar"):
484 with self.assertRaisesRegexp(ValueError,
496 with self.assertRaisesRegexp(ValueError,
511 with self.assertRaisesRegexp(ValueError, "There must be at least one ps."):
/external/autotest/client/cros/cellular/mbim_compliance/
Dusb_descriptors_unittest.py32 with self.assertRaisesRegexp(
63 with self.assertRaisesRegexp(
76 with self.assertRaisesRegexp(
88 with self.assertRaisesRegexp(
93 with self.assertRaisesRegexp(
105 with self.assertRaisesRegexp(
Dmbim_message_unittest.py38 with self.assertRaisesRegexp(
52 with self.assertRaisesRegexp(
63 with self.assertRaisesRegexp(
98 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/keras/engine/
Dinput_layer_test.py235 with self.assertRaisesRegexp(
240 with self.assertRaisesRegexp(
245 with self.assertRaisesRegexp(
250 with self.assertRaisesRegexp(
255 with self.assertRaisesRegexp(
/external/tensorflow/tensorflow/python/kernel_tests/
Dunique_op_test.py129 with self.assertRaisesRegexp(ValueError, "axis expects a 1D vector"):
132 with self.assertRaisesRegexp(ValueError, "x expects a 1D vector"):
135 with self.assertRaisesRegexp(
139 with self.assertRaisesRegexp(ValueError,
143 with self.assertRaisesRegexp(ValueError,
/external/fonttools/Tests/pens/
D__init__.py13 unittest.TestCase.assertRaisesRegex = unittest.TestCase.assertRaisesRegexp
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_asserts.py15 assertRaisesRegexp="assertRaisesRegex",
/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_asserts.py15 assertRaisesRegexp="assertRaisesRegex",

123456