/external/chromium-trace/catapult/third_party/webapp2/tests/ |
D | misc_test.py | 13 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 …]
|
D | extras_config_test.py | 47 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 …]
|
D | extras_routes_test.py | 89 …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 …]
|
D | routing_test.py | 68 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/ |
D | test_zipio.py | 23 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/ |
D | global_state_unittest.py | 25 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/ |
D | cloud_storage_info_unittest.py | 20 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/ |
D | ipaddr_test.py | 72 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/ |
D | decorators_test.py | 36 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/ |
D | wire_format_test.py | 51 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/ |
D | test_transform.py | 55 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)
|
D | test_common.py | 16 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/ |
D | unicode_test.py | 26 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/ |
D | test_mox.py | 38 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/ |
D | test_mox.py | 38 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/ |
D | control_data_unittest.py | 149 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 …]
|
D | base_job_unittest.py | 206 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/ |
D | messages_test.py | 107 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/ |
D | sheriff_test.py | 14 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/ |
D | binary_manager_unittest.py | 167 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):
|
D | cloud_storage_unittest.py | 59 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/ |
D | mock_calls_test.py | 70 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/ |
D | pie_chart_test.py | 34 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/ |
D | fake_filesystem_test.py | 77 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/ |
D | mbim_errors_unittest.py | 17 self.assertRaises( 26 self.assertRaises( 36 self.assertRaises( 45 self.assertRaises(
|