Home
last modified time | relevance | path

Searched refs:assertIsInstance (Results 1 – 25 of 580) sorted by relevance

12345678910>>...24

/external/autotest/client/cros/cellular/mbim_compliance/
Dusb_descriptors_unittest.py133 self.assertIsInstance(descriptor, UnknownDescriptor)
149 self.assertIsInstance(descriptor, FunctionalDescriptor)
179 self.assertIsInstance(descriptor, ConfigurationDescriptor)
180 self.assertIsInstance(descriptor, Descriptor)
194 self.assertIsInstance(descriptor, InterfaceAssociationDescriptor)
195 self.assertIsInstance(descriptor, Descriptor)
209 self.assertIsInstance(descriptor, InterfaceDescriptor)
210 self.assertIsInstance(descriptor, Descriptor)
225 self.assertIsInstance(descriptor, HeaderFunctionalDescriptor)
226 self.assertIsInstance(descriptor, FunctionalDescriptor)
[all …]
/external/python/apitools/apitools/base/py/
Dexceptions_test.py33 self.assertIsInstance(err, exceptions.HttpError)
34 self.assertIsInstance(err, exceptions.HttpBadRequestError)
39 self.assertIsInstance(err, exceptions.HttpError)
40 self.assertIsInstance(err, exceptions.HttpUnauthorizedError)
45 self.assertIsInstance(err, exceptions.HttpError)
46 self.assertIsInstance(err, exceptions.HttpForbiddenError)
57 self.assertIsInstance(err, exceptions.HttpError)
58 self.assertIsInstance(err, exceptions.HttpNotFoundError)
63 self.assertIsInstance(err, exceptions.HttpError)
64 self.assertIsInstance(err, exceptions.HttpConflictError)
[all …]
/external/python/cpython3/Lib/tkinter/test/test_tkinter/
Dtest_font.py29 self.assertIsInstance(options[key], str)
30 self.assertIsInstance(self.font.cget(key), str)
31 self.assertIsInstance(self.font[key], str)
34 self.assertIsInstance(options[key], sizetype)
35 self.assertIsInstance(self.font.cget(key), sizetype)
36 self.assertIsInstance(self.font[key], sizetype)
55 self.assertIsInstance(options[key], str)
56 self.assertIsInstance(self.font.actual(key), str)
59 self.assertIsInstance(options[key], sizetype)
60 self.assertIsInstance(self.font.actual(key), sizetype)
[all …]
/external/python/cpython2/Lib/lib-tk/test/test_tkinter/
Dtest_font.py29 self.assertIsInstance(options[key], str)
30 self.assertIsInstance(self.font.cget(key), str)
31 self.assertIsInstance(self.font[key], str)
34 self.assertIsInstance(options[key], sizetype)
35 self.assertIsInstance(self.font.cget(key), sizetype)
36 self.assertIsInstance(self.font[key], sizetype)
55 self.assertIsInstance(options[key], str)
56 self.assertIsInstance(self.font.actual(key), str)
59 self.assertIsInstance(options[key], sizetype)
60 self.assertIsInstance(self.font.actual(key), sizetype)
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/
Dtemplates_test.py57 self.test_instance.assertIsInstance(node.ctx, self.expected_ctx)
163 self.assertIsInstance(node.body[0].targets[0].ctx, gast.Store)
164 self.assertIsInstance(node.body[0].targets[0].value.ctx, gast.Load)
165 self.assertIsInstance(node.body[0].targets[0].value.value.ctx, gast.Load)
174 self.assertIsInstance(node.body[0].targets[0].ctx, gast.Store)
175 self.assertIsInstance(node.body[0].targets[0].elts[0].ctx, gast.Store)
176 self.assertIsInstance(node.body[0].targets[0].elts[1].ctx, gast.Store)
185 self.assertIsInstance(node.body[0].targets[0].ctx, gast.Store)
186 self.assertIsInstance(node.body[0].targets[0].elts[0].ctx, gast.Store)
187 self.assertIsInstance(node.body[0].targets[0].elts[1].ctx, gast.Store)
[all …]
/external/python/cpython2/Lib/test/
Dtest_spwd.py14 self.assertIsInstance(entries, list)
16 self.assertIsInstance(entry, spwd.struct_spwd)
24 self.assertIsInstance(entry, spwd.struct_spwd)
27 self.assertIsInstance(entry.sp_pwd, str)
29 self.assertIsInstance(entry.sp_lstchg, int)
31 self.assertIsInstance(entry.sp_min, int)
33 self.assertIsInstance(entry.sp_max, int)
35 self.assertIsInstance(entry.sp_warn, int)
37 self.assertIsInstance(entry.sp_inact, int)
39 self.assertIsInstance(entry.sp_expire, int)
[all …]
Dtest_dictviews.py78 self.assertIsInstance(repr(d), str)
80 self.assertIsInstance(r, str)
84 self.assertIsInstance(r, str)
88 self.assertIsInstance(r, str)
177 self.assertIsInstance(r, str)
181 self.assertIsInstance(r, str)
192 self.assertIsInstance(d.viewkeys(), collections.KeysView)
193 self.assertIsInstance(d.viewkeys(), collections.MappingView)
194 self.assertIsInstance(d.viewkeys(), collections.Set)
195 self.assertIsInstance(d.viewkeys(), collections.Sized)
[all …]
Dtest_sys.py200 self.assertIsInstance(sys.getdefaultencoding(), str)
238 self.assertIsInstance(v[0], int)
239 self.assertIsInstance(v[1], int)
240 self.assertIsInstance(v[2], int)
241 self.assertIsInstance(v[3], int)
242 self.assertIsInstance(v[4], str)
244 self.assertIsInstance(v.major, int)
245 self.assertIsInstance(v.minor, int)
246 self.assertIsInstance(v.build, int)
247 self.assertIsInstance(v.platform, int)
[all …]
Dtest_pwd.py15 self.assertIsInstance(e.pw_name, basestring)
17 self.assertIsInstance(e.pw_passwd, basestring)
19 self.assertIsInstance(e.pw_uid, (int, long))
21 self.assertIsInstance(e.pw_gid, (int, long))
23 self.assertIsInstance(e.pw_gecos, basestring)
25 self.assertIsInstance(e.pw_dir, basestring)
27 self.assertIsInstance(e.pw_shell, basestring)
/external/python/cpython3/Lib/test/
Dtest_spwd.py14 self.assertIsInstance(entries, list)
16 self.assertIsInstance(entry, spwd.struct_spwd)
24 self.assertIsInstance(entry, spwd.struct_spwd)
28 self.assertIsInstance(entry.sp_pwdp, str)
31 self.assertIsInstance(entry.sp_lstchg, int)
33 self.assertIsInstance(entry.sp_min, int)
35 self.assertIsInstance(entry.sp_max, int)
37 self.assertIsInstance(entry.sp_warn, int)
39 self.assertIsInstance(entry.sp_inact, int)
41 self.assertIsInstance(entry.sp_expire, int)
[all …]
Dtest_raise.py87 self.assertIsInstance(e.__context__, TypeError)
170 self.assertIsInstance(e.__context__, TypeError)
184 self.assertIsInstance(e.__cause__, KeyError)
216 self.assertIsInstance(e.__traceback__, types.TracebackType)
242 self.assertIsInstance(tb.tb_next, types.TracebackType)
244 self.assertIsInstance(tb.tb_lasti, int)
245 self.assertIsInstance(tb.tb_lineno, int)
319 self.assertIsInstance(e.__context__, context)
332 self.assertIsInstance(e.__context__, context)
343 self.assertIsInstance(e.__context__, ZeroDivisionError)
[all …]
Dtest_dictviews.py77 self.assertIsInstance(repr(d), str)
79 self.assertIsInstance(r, str)
83 self.assertIsInstance(r, str)
87 self.assertIsInstance(r, str)
111 self.assertIsInstance(d4.keys() & frozenset(d3.keys()), set)
112 self.assertIsInstance(frozenset(d3.keys()) & d4.keys(), set)
256 self.assertIsInstance(r, str)
260 self.assertIsInstance(r, str)
313 self.assertIsInstance(d.keys(), collections.abc.KeysView)
314 self.assertIsInstance(d.keys(), collections.abc.MappingView)
[all …]
Dtest_sys.py185 self.assertIsInstance(sys.getdefaultencoding(), str)
304 self.assertIsInstance(v[0], int)
305 self.assertIsInstance(v[1], int)
306 self.assertIsInstance(v[2], int)
307 self.assertIsInstance(v[3], int)
308 self.assertIsInstance(v[4], str)
310 self.assertIsInstance(v.major, int)
311 self.assertIsInstance(v.minor, int)
312 self.assertIsInstance(v.build, int)
313 self.assertIsInstance(v.platform, int)
[all …]
/external/python/oauth2client/tests/
Dtest__pure_python_crypt.py81 self.assertIsInstance(verifier, crypt.RsaVerifier)
82 self.assertIsInstance(verifier._pubkey, rsa.key.PublicKey)
88 self.assertIsInstance(verifier, crypt.RsaVerifier)
89 self.assertIsInstance(verifier._pubkey, rsa.key.PublicKey)
95 self.assertIsInstance(verifier, crypt.RsaVerifier)
96 self.assertIsInstance(verifier._pubkey, rsa.key.PublicKey)
102 self.assertIsInstance(verifier, crypt.RsaVerifier)
103 self.assertIsInstance(verifier._pubkey, rsa.key.PublicKey)
139 self.assertIsInstance(signer, crypt.RsaSigner)
140 self.assertIsInstance(signer._key, rsa.key.PrivateKey)
[all …]
/external/tensorflow/tensorflow/python/ops/numpy_ops/
Dnp_interop_test.py99 self.assertIsInstance(dx, np.ndarray)
100 self.assertIsInstance(dy, np.ndarray)
152 self.assertIsInstance(arr_plus_t, tf.Tensor)
153 self.assertIsInstance(t_plus_arr, tf.Tensor)
161 self.assertIsInstance(sq, np.ndarray)
169 self.assertIsInstance(sq, tf.Tensor)
177 self.assertIsInstance(sq, onp.ndarray)
222 self.assertIsInstance(values[0], np.ndarray)
223 self.assertIsInstance(values[1], np.ndarray)
224 self.assertIsInstance(values[2], np.ndarray)
[all …]
/external/python/rsa/tests/
Dtest_pem.py79 self.assertIsInstance(key.save_pkcs1(format='DER'), bytes)
80 self.assertIsInstance(key.save_pkcs1(format='PEM'), bytes)
84 self.assertIsInstance(key.save_pkcs1(format='DER'), bytes)
85 self.assertIsInstance(key.save_pkcs1(format='PEM'), bytes)
93 self.assertIsInstance(key.save_pkcs1(format='DER'), bytes)
94 self.assertIsInstance(key.save_pkcs1(format='PEM'), bytes)
98 self.assertIsInstance(key.save_pkcs1(format='DER'), bytes)
99 self.assertIsInstance(key.save_pkcs1(format='PEM'), bytes)
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestasync.py82 self.assertIsInstance(mock_method, AsyncMock)
89 self.assertIsInstance(mock_method, AsyncMock)
96 self.assertIsInstance(mock_method, AsyncMock)
107 self.assertIsInstance(async_func, AsyncMock)
108 self.assertIsInstance(async_func_args, AsyncMock)
137 self.assertIsInstance(mock_method, AsyncMock)
144 self.assertIsInstance(async_func, AsyncMock)
181 self.assertIsInstance(mock, asyncio.Future)
188 self.assertIsInstance(mock_method.async_method, AsyncMock)
189 self.assertIsInstance(mock_method, MagicMock)
[all …]
/external/tensorflow/tensorflow/lite/micro/examples/magic_wand/train/
Ddata_split_person_test.py45 self.assertIsInstance(train_data, list)
46 self.assertIsInstance(valid_data, list)
47 self.assertIsInstance(test_data, list)
48 self.assertIsInstance(train_data[0], dict)
49 self.assertIsInstance(valid_data[0], dict)
50 self.assertIsInstance(test_data[0], dict)
Ddata_load_test.py37 self.assertIsInstance(self.loader.train_data, list)
38 self.assertIsInstance(self.loader.train_label, list)
39 self.assertIsInstance(self.loader.valid_data, list)
40 self.assertIsInstance(self.loader.valid_label, list)
41 self.assertIsInstance(self.loader.test_data, list)
42 self.assertIsInstance(self.loader.test_label, list)
89 self.assertIsInstance(self.loader.train_data, tf.data.Dataset)
90 self.assertIsInstance(self.loader.valid_data, tf.data.Dataset)
91 self.assertIsInstance(self.loader.test_data, tf.data.Dataset)
/external/python/pycparser/tests/
Dtest_c_parser.py122 self.assertIsInstance(t, FileAST)
127 self.assertIsInstance(t2, FileAST)
133 self.assertIsInstance(t, FileAST)
496 self.assertIsInstance(pdecl, PtrDecl)
514 self.assertIsInstance(s1, UnaryOp)
516 self.assertIsInstance(s1.expr, ID)
554 self.assertIsInstance(s1, FuncCall)
555 self.assertIsInstance(s1.name, ID)
557 self.assertIsInstance(s1.args.exprs[0], Typename)
558 self.assertIsInstance(s1.args.exprs[1], ID)
[all …]
/external/tensorflow/tensorflow/python/distribute/
Ddistribute_utils_test.py46 self.assertIsInstance(result, klass)
52 self.assertIsInstance(result, tuple)
57 self.assertIsInstance(result[1], list)
62 self.assertIsInstance(result[1][1], dict)
84 self.assertIsInstance(result, DictBasedClass)
107 self.assertIsInstance(result, CollectionsMappingBasedClass)
116 self.assertIsInstance(result, tuple)
121 self.assertIsInstance(result[1], list)
126 self.assertIsInstance(result[1][1], dict)
144 self.assertIsInstance(result, tuple)
[all …]
Dstrategy_combinations_test.py101 self.assertIsInstance(strategy, one_device_strategy.OneDeviceStrategyV1)
112 self.assertIsInstance(strategy, mirrored_strategy.MirroredStrategyV1)
123 self.assertIsInstance(
132 self.assertIsInstance(strategy,
138 self.assertIsInstance(strategy, tpu_strategy.TPUStrategyV1)
155 self.assertIsInstance(strategy, one_device_strategy.OneDeviceStrategy)
166 self.assertIsInstance(strategy, mirrored_strategy.MirroredStrategy)
176 self.assertIsInstance(
185 self.assertIsInstance(strategy,
191 self.assertIsInstance(strategy, tpu_strategy.TPUStrategy)
/external/python/oauth2client/tests/contrib/django_util/
Dtest_views.py53 self.assertIsInstance(response, http.HttpResponseRedirect)
60 self.assertIsInstance(response, http.HttpResponseRedirect)
68 self.assertIsInstance(response, http.HttpResponseRedirect)
99 self.assertIsInstance(response, http.HttpResponseRedirect)
108 self.assertIsInstance(response, http.HttpResponseRedirect)
118 self.assertIsInstance(response, http.HttpResponseRedirect)
135 self.assertIsInstance(response, http.HttpResponseRedirect)
179 self.assertIsInstance(response, http.HttpResponseRedirect)
211 self.assertIsInstance(response, http.HttpResponseBadRequest)
218 self.assertIsInstance(response, http.HttpResponseBadRequest)
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_credentials_test.py32 self.assertIsInstance(first_and_second, grpc.CallCredentials)
33 self.assertIsInstance(first_second_and_third, grpc.CallCredentials)
50 self.assertIsInstance(channel_and_first, grpc.ChannelCredentials)
51 self.assertIsInstance(channel_first_and_second, grpc.ChannelCredentials)
52 self.assertIsInstance(channel_first_second_and_third,
/external/fonttools/Tests/feaLib/
Dparser_test.py193 self.assertIsInstance(anon, ast.AnonymousBlock)
199 self.assertIsInstance(anon, ast.AnonymousBlock)
212 self.assertIsInstance(s, ast.AttachStatement)
231 self.assertIsInstance(comment, ast.Comment)
237 self.assertIsInstance(ref, ast.FeatureReferenceStatement)
249 self.assertIsInstance(featureNames, ast.NestedBlock)
251 self.assertIsInstance(comment, ast.Comment)
258 self.assertIsInstance(featureNames, ast.NestedBlock)
264 self.assertIsInstance(s, ast.FontRevisionStatement)
448 self.assertIsInstance(s, ast.GlyphClassDefStatement)
[all …]

12345678910>>...24