Home
last modified time | relevance | path

Searched refs:assertRaises (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/external/chromium-trace/catapult/third_party/webapp2/tests/
Dmisc_test.py13 self.assertRaises(webob.exc.HTTPOk, webapp2.abort, 200)
14 self.assertRaises(webob.exc.HTTPCreated, webapp2.abort, 201)
15 self.assertRaises(webob.exc.HTTPAccepted, webapp2.abort, 202)
16 self.assertRaises(webob.exc.HTTPNonAuthoritativeInformation, webapp2.abort, 203)
17 self.assertRaises(webob.exc.HTTPNoContent, webapp2.abort, 204)
18 self.assertRaises(webob.exc.HTTPResetContent, webapp2.abort, 205)
19 self.assertRaises(webob.exc.HTTPPartialContent, webapp2.abort, 206)
20 self.assertRaises(webob.exc.HTTPMultipleChoices, webapp2.abort, 300)
21 self.assertRaises(webob.exc.HTTPMovedPermanently, webapp2.abort, 301)
22 self.assertRaises(webob.exc.HTTPFound, webapp2.abort, 302)
[all …]
Dextras_config_test.py47 self.assertRaises(KeyError, config.get_config, 'foo', 'bar')
63 self.assertRaises(KeyError, config.get_config, 'bar')
68 self.assertRaises(KeyError, config.get_config, 'foo', 'bar', 'ooops')
69 self.assertRaises(KeyError, config.get_config, 'foo', 'doo', 'wooo')
95 self.assertRaises(KeyError, config.get_config, 'foo')
130 self.assertRaises(AssertionError, app_config.Config, {'foo': 'bar'})
131 self.assertRaises(AssertionError, app_config.Config, {'foo': None})
132 self.assertRaises(AssertionError, app_config.Config, 'foo')
135 self.assertRaises(AssertionError, app_config.Config, {}, {'foo': 'bar'})
136 self.assertRaises(AssertionError, app_config.Config, {}, {'foo': None})
[all …]
Dextras_routes_test.py89 …self.assertRaises(ValueError, RedirectRoute, '/strict-bar/', handler=HomeHandler, strict_slash=Tru…
92 self.assertRaises(ValueError, RedirectRoute, '/', handler=HomeHandler, build_only=True)
177 self.assertRaises(webapp2.exc.HTTPNotFound, router.match, webapp2.Request.blank('/foo'))
265 self.assertRaises(webapp2.exc.HTTPNotFound, router.match, webapp2.Request.blank(uri1b))
266 self.assertRaises(webapp2.exc.HTTPNotFound, router.match, webapp2.Request.blank(uri1c))
269 self.assertRaises(webapp2.exc.HTTPNotFound, router.match, webapp2.Request.blank(uri2b))
270 self.assertRaises(webapp2.exc.HTTPNotFound, router.match, webapp2.Request.blank(uri2c))
271 self.assertRaises(webapp2.exc.HTTPNotFound, router.match, webapp2.Request.blank(uri2d))
275 self.assertRaises(webapp2.exc.HTTPNotFound, router.match, webapp2.Request.blank(uri3c))
276 self.assertRaises(webapp2.exc.HTTPNotFound, router.match, webapp2.Request.blank(uri3d))
[all …]
Drouting_test.py68 self.assertRaises(KeyError, route.build, Request.blank('/'), (), {})
71 self.assertRaises(KeyError, route.build, Request.blank('/'), (2010,), {})
75 self.assertRaises(ValueError, route.build, Request.blank('/'), ('20100',), {})
79 self.assertRaises(ValueError, route.build, Request.blank('/'), ('201a',), {})
83 self.assertRaises(KeyError, route.build, Request.blank('/'), (), {})
87 self.assertRaises(KeyError, route.build, Request.blank('/'), (), dict(year='2010'))
91 self.assertRaises(ValueError, route.build, Request.blank('/'), (), dict(year='20100'))
95 self.assertRaises(ValueError, route.build, Request.blank('/'), (), dict(year='201a'))
151 …self.assertRaises(KeyError, router.build, Request.blank('/'), 'i-dont-exist', (), dict(year='2010'…
180 self.assertRaises(AttributeError, router.build, None, 'hello', (), dict(_full=True))
[all …]
/external/chromium-trace/catapult/telemetry/third_party/modulegraph/modulegraph_tests/
Dtest_zipio.py23 self.assertRaises(IOError, zipio._locate, '/usr/bin/ditto.bar')
24 self.assertRaises(IOError, zipio._locate, '/foo/bar/baz.txt')
52 self.assertRaises(IOError, zipio.open, os.path.join(TESTDATA, 'zipped.egg', 'subdir'))
53 self.assertRaises(IOError, zipio.open, os.path.join(TESTDATA, 'zipped.egg', 'subdir2'))
54 … self.assertRaises(IOError, zipio.open, os.path.join(TESTDATA, 'zipped.egg', 'subdir2/subdir'))
55 self.assertRaises(IOError, zipio.open, os.path.join(TESTDATA, 'zipped.egg', 'subdir3'))
57 self.assertRaises(IOError, zipio.open, os.path.join(TESTDATA, 'zipped.egg', 'subdir4'))
60 self.assertRaises(IOError, zipio.open, os.path.join(TESTDATA, 'zipped.egg', 'no-such-file'))
61 …self.assertRaises(IOError, zipio.open, os.path.join(TESTDATA, 'zipped.egg', 'subdir/no-such-file'))
64 self.assertRaises(IOError, zipio.open, os.path.join(TESTDATA, 'no-such-file.txt'))
[all …]
/external/autotest/client/cros/cellular/wardmodem/
Dglobal_state_unittest.py25 self.assertRaises(wme.WardModemSetupException,
38 self.assertRaises(TypeError,
42 self.assertRaises(wme.WardModemSetupException,
46 self.assertRaises(wme.WardModemSetupException,
50 self.assertRaises(wme.WardModemSetupException,
54 self.assertRaises(wme.WardModemSetupException,
58 self.assertRaises(wme.WardModemSetupException,
62 self.assertRaises(wme.WardModemSetupException,
66 self.assertRaises(wme.WardModemSetupException,
142 self.assertRaises(wme.StateMachineException,
[all …]
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Dcloud_storage_info_unittest.py20 self.assertRaises(ValueError, cloud_storage_info.CloudStorageInfo,
22 self.assertRaises(ValueError, cloud_storage_info.CloudStorageInfo,
24 self.assertRaises(ValueError, cloud_storage_info.CloudStorageInfo,
26 self.assertRaises(ValueError, cloud_storage_info.CloudStorageInfo,
28 self.assertRaises(ValueError, cloud_storage_info.CloudStorageInfo,
30 self.assertRaises(ValueError, cloud_storage_info.CloudStorageInfo,
32 self.assertRaises(ValueError, cloud_storage_info.CloudStorageInfo,
34 self.assertRaises(ValueError, cloud_storage_info.CloudStorageInfo,
36 self.assertRaises(ValueError, cloud_storage_info.CloudStorageInfo,
40 self.assertRaises(
[all …]
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/ipaddr/
Dipaddr_test.py72 self.assertRaises(ValueError, ipaddr.IPAddress, ip_str)
137 self.assertRaises(ipaddr.AddressValueError, ipaddr.IPv4Network, '')
138 self.assertRaises(ipaddr.AddressValueError, ipaddr.IPv4Network,
140 self.assertRaises(ipaddr.AddressValueError, ipaddr.IPv4Network,
142 self.assertRaises(ipaddr.AddressValueError, ipaddr.IPv6Network, '')
143 self.assertRaises(ipaddr.AddressValueError, ipaddr.IPv6Network,
145 self.assertRaises(ipaddr.AddressValueError, ipaddr.IPv6Network,
147 self.assertRaises(ipaddr.AddressValueError, ipaddr.IPv6Network,
149 self.assertRaises(ipaddr.AddressValueError, ipaddr.IPv6Network,
151 self.assertRaises(ipaddr.AddressValueError, ipaddr.IPv6Address,
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddecorators_test.py36 with self.assertRaises(device_errors.CommandTimeoutError):
51 with self.assertRaises(device_errors.CommandFailedError):
61 with self.assertRaises(KeyError):
63 with self.assertRaises(KeyError):
65 with self.assertRaises(KeyError):
82 with self.assertRaises(device_errors.CommandTimeoutError) as e:
99 with self.assertRaises(device_errors.CommandFailedError):
114 with self.assertRaises(device_errors.NoAdbError):
128 with self.assertRaises(device_errors.CommandTimeoutError):
135 with self.assertRaises(device_errors.CommandTimeoutError):
[all …]
/external/protobuf/python/google/protobuf/internal/
Dwire_format_test.py51 self.assertRaises(message.EncodeError, PackTag, field_number, 6)
53 self.assertRaises(message.EncodeError, PackTag, field_number, -1)
64 self.assertRaises(TypeError, wire_format.UnpackTag, None)
65 self.assertRaises(TypeError, wire_format.UnpackTag, 'abc')
66 self.assertRaises(TypeError, wire_format.UnpackTag, 0.0)
67 self.assertRaises(TypeError, wire_format.UnpackTag, object())
81 self.assertRaises(TypeError, Z, None)
82 self.assertRaises(TypeError, Z, 'abcd')
83 self.assertRaises(TypeError, Z, 0.0)
84 self.assertRaises(TypeError, Z, object())
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/rsa/tests/
Dtest_transform.py55 self.assertRaises(OverflowError, int2bytes, 123456789, 3)
56 self.assertRaises(OverflowError, int2bytes, 299999999999, 4)
58 self.assertRaises(OverflowError, _int2bytes, 123456789, 3)
59 self.assertRaises(OverflowError, _int2bytes, 299999999999, 4)
62 self.assertRaises(ValueError, int2bytes, -1)
63 self.assertRaises(ValueError, _int2bytes, -1)
66 self.assertRaises(TypeError, int2bytes, None)
67 self.assertRaises(TypeError, _int2bytes, None)
Dtest_common.py16 self.assertRaises(struct.error, byte, 256)
17 self.assertRaises(struct.error, byte, -1)
38 self.assertRaises(TypeError, byte_size, [])
39 self.assertRaises(TypeError, byte_size, ())
40 self.assertRaises(TypeError, byte_size, dict())
41 self.assertRaises(TypeError, byte_size, "")
42 self.assertRaises(TypeError, byte_size, None)
/external/regex-re2/re2/testing/
Dunicode_test.py26 self.assertRaises(unicode.InputError, unicode._UInt, "263")
27 self.assertRaises(unicode.InputError, unicode._UInt, "263AAAA")
28 self.assertRaises(unicode.InputError, unicode._UInt, "110000")
33 self.assertRaises(unicode.InputError, unicode._URange, "0001..0003..0005")
34 self.assertRaises(unicode.InputError, unicode._URange, "0003..0001")
35 self.assertRaises(unicode.InputError, unicode._URange, "0001..0001")
40 self.assertRaises(unicode.InputError, unicode._UStr, 0x110000)
41 self.assertRaises(unicode.InputError, unicode._UStr, -1)
116 self.assertRaises(unicode.InputError, StringTable, _UNICODE_TABLE, 4, Abort)
117 self.assertRaises(unicode.InputError, StringTable, _UNICODE_TABLE, 2, Abort)
[all …]
/external/chromium-trace/catapult/third_party/mox3/mox3/tests/
Dtest_mox.py38 self.assertRaises(ValueError, mox.ExpectedMethodCallsError, [])
137 self.assertRaises(
297 self.assertRaises(re.error, mox.Regex, '(a|b')
499 self.assertRaises(TestException, self.mock_method, ['original'])
673 self.assertRaises(mox.UnexpectedMethodCallError,
688 self.assertRaises(
786 self.assertRaises(AttributeError, method)
788 self.assertRaises(AttributeError, method, instance, 1)
795 self.assertRaises(AttributeError, method, 1)
796 self.assertRaises(AttributeError, method, 1, 2)
[all …]
/external/chromium-trace/catapult/telemetry/third_party/mox3/mox3/tests/
Dtest_mox.py38 self.assertRaises(ValueError, mox.ExpectedMethodCallsError, [])
137 self.assertRaises(
297 self.assertRaises(re.error, mox.Regex, '(a|b')
499 self.assertRaises(TestException, self.mock_method, ['original'])
673 self.assertRaises(mox.UnexpectedMethodCallError,
688 self.assertRaises(
786 self.assertRaises(AttributeError, method)
788 self.assertRaises(AttributeError, method, instance, 1)
795 self.assertRaises(AttributeError, method, 1)
796 self.assertRaises(AttributeError, method, 1, 2)
[all …]
/external/autotest/client/common_lib/
Dcontrol_data_unittest.py149 self.assertRaises(ValueError, cd._set_bool, 'foo', '')
150 self.assertRaises(ValueError, cd._set_bool, 'foo', 1)
151 self.assertRaises(ValueError, cd._set_bool, 'foo', [])
152 self.assertRaises(ValueError, cd._set_bool, 'foo', None)
163 self.assertRaises(ValueError, cd._set_int, 'foo', 0, min=1)
164 self.assertRaises(ValueError, cd._set_int, 'foo', 1, max=0)
165 self.assertRaises(ValueError, cd._set_int, 'foo', 'x')
166 self.assertRaises(ValueError, cd._set_int, 'foo', '')
167 self.assertRaises(TypeError, cd._set_int, 'foo', None)
207 self.assertRaises(ValueError, cd._set_option,
[all …]
Dbase_job_unittest.py206 self.assertRaises(IndexError, self.job.pop_execution_context)
274 self.assertRaises(base_job.job_directory.MissingDirectoryException,
281 self.assertRaises(base_job.job_directory.MissingDirectoryException,
308 self.assertRaises(base_job.job_directory.UncreatableDirectoryException,
315 self.assertRaises(base_job.job_directory.UncreatableDirectoryException,
330 self.assertRaises(base_job.job_directory.UnwritableDirectoryException,
335 self.assertRaises(base_job.job_directory.MissingDirectoryException,
354 self.assertRaises(KeyError, self.state.get, 'ns1', 'missing_name')
379 self.assertRaises(KeyError, self.state.get, 'ns6', 'name4')
397 self.assertRaises(KeyError, self.state.get, 'ns9', 'name8')
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/
Dmessages_test.py107 self.assertRaises(KeyError, Color.lookup_by_name, 20)
108 self.assertRaises(KeyError, Color.lookup_by_name, Color.RED)
112 self.assertRaises(KeyError, Color.lookup_by_number, 'RED')
114 self.assertRaises(KeyError, Color.lookup_by_number, Color.RED)
124 self.assertRaises(TypeError, Color, 'Not exists')
125 self.assertRaises(TypeError, Color, 'Red')
126 self.assertRaises(TypeError, Color, 100)
127 self.assertRaises(TypeError, Color, 10.0)
138 self.assertRaises(messages.EnumDefinitionError,
143 self.assertRaises(AttributeError,
[all …]
/external/chromium-trace/catapult/dashboard/dashboard/models/
Dsheriff_test.py14 with self.assertRaises(sheriff.ValidationError):
17 with self.assertRaises(sheriff.ValidationError):
19 with self.assertRaises(sheriff.ValidationError):
29 with self.assertRaises(sheriff.ValidationError):
44 with self.assertRaises(sheriff.ValidationError):
/external/chromium-trace/catapult/catapult_base/catapult_base/
Dbinary_manager_unittest.py167 with self.assertRaises(ValueError):
171 with self.assertRaises(ValueError):
175 with self.assertRaises(ValueError):
198 with self.assertRaises(exceptions.NoPathFoundError):
200 with self.assertRaises(exceptions.NoPathFoundError):
202 with self.assertRaises(exceptions.NoPathFoundError):
204 with self.assertRaises(exceptions.NoPathFoundError):
Dcloud_storage_unittest.py59 self.assertRaises(error, cloud_storage._RunCommand, [])
191 self.assertRaises(ValueError, cloud_storage.GetFilesInDirectoryIfChanged,
194 self.assertRaises(ValueError, cloud_storage.GetFilesInDirectoryIfChanged,
227 with self.assertRaises(cloud_storage.CloudStorageIODisabled):
229 with self.assertRaises(cloud_storage.CloudStorageIODisabled):
231 with self.assertRaises(cloud_storage.CloudStorageIODisabled):
233 with self.assertRaises(cloud_storage.CloudStorageIODisabled):
235 with self.assertRaises(cloud_storage.CloudStorageIODisabled):
237 with self.assertRaises(cloud_storage.CloudStorageIODisabled):
/external/chromium-trace/catapult/devil/devil/utils/
Dmock_calls_test.py70 with self.assertRaises(ValueError):
74 with self.assertRaises(AttributeError):
78 with self.assertRaises(AttributeError):
97 with self.assertRaises(ValueError):
130 with self.assertRaises(ValueError):
134 with self.assertRaises(AssertionError):
140 with self.assertRaises(AssertionError):
153 with self.assertRaises(AssertionError):
165 with self.assertRaises(AssertionError):
/external/chromium-trace/catapult/third_party/graphy/graphy/
Dpie_chart_test.py34 self.assertRaises(DeprecationWarning, pie_chart.Segment, 1,
49 self.assertRaises(AssertionError, pie_chart.PieChart,
52 self.assertRaises(AssertionError, pie_chart.Segment, -5, 'Dummy', '0000ff')
54 self.assertRaises(AssertionError, segment._SetSize, -5)
61 self.assertRaises(DeprecationWarning, chart.AddSegment, 1,
74 self.assertRaises(DeprecationWarning, chart.AddSegments, [1],
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/
Dfake_filesystem_test.py77 self.assertRaises(KeyError, self.fake_dir.GetEntry, 'foobar')
80 self.assertRaises(IOError, self.fake_file.SetSize, 0.1)
83 self.assertRaises(IOError, self.fake_file.SetSize, -1)
138 self.assertRaises(IOError, self.fake_file.SetLargeFileSize, 0.1)
141 self.assertRaises(IOError, self.fake_file.SetLargeFileSize, -1)
222 self.assertRaises(TypeError, self.filesystem.Exists, None)
267 self.assertRaises(IOError, self.filesystem.GetObject,
273 self.assertRaises(IOError, self.filesystem.GetObject, self.fake_file.name)
276 self.assertRaises(IOError, self.filesystem.RemoveObject,
293 self.assertRaises(IOError, self.filesystem.AddObject,
[all …]
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_errors_unittest.py17 self.assertRaises(
26 self.assertRaises(
36 self.assertRaises(
45 self.assertRaises(

12345678910>>...14