Home
last modified time | relevance | path

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

12345678910>>...18

/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/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.py109 self.assertIsInstance(node.body[0].targets[0].ctx, gast.Store)
110 self.assertIsInstance(node.body[0].targets[0].value.ctx, gast.Load)
111 self.assertIsInstance(node.body[0].targets[0].value.value.ctx, gast.Load)
120 self.assertIsInstance(node.body[0].targets[0].ctx, gast.Store)
121 self.assertIsInstance(node.body[0].targets[0].elts[0].ctx, gast.Store)
122 self.assertIsInstance(node.body[0].targets[0].elts[1].ctx, gast.Store)
131 self.assertIsInstance(node.body[0].targets[0].ctx, gast.Store)
132 self.assertIsInstance(node.body[0].targets[0].elts[0].ctx, gast.Store)
133 self.assertIsInstance(node.body[0].targets[0].elts[1].ctx, gast.Store)
143 self.assertIsInstance(node.body[0].left.ctx, gast.Load)
[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)
Dtest_abc.py97 self.assertIsInstance(b, A)
98 self.assertIsInstance(b, (A,))
104 self.assertIsInstance(c, A)
105 self.assertIsInstance(c, (A,))
123 self.assertIsInstance(42, A)
124 self.assertIsInstance(42, (A,))
130 self.assertIsInstance("", A)
131 self.assertIsInstance("", (A,))
194 self.assertIsInstance(42, A)
195 self.assertIsInstance(42, (A,))
/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_sys.py158 self.assertIsInstance(sys.getdefaultencoding(), str)
283 self.assertIsInstance(v[0], int)
284 self.assertIsInstance(v[1], int)
285 self.assertIsInstance(v[2], int)
286 self.assertIsInstance(v[3], int)
287 self.assertIsInstance(v[4], str)
289 self.assertIsInstance(v.major, int)
290 self.assertIsInstance(v.minor, int)
291 self.assertIsInstance(v.build, int)
292 self.assertIsInstance(v.platform, int)
[all …]
Dtest_dictviews.py77 self.assertIsInstance(repr(d), str)
79 self.assertIsInstance(r, str)
83 self.assertIsInstance(r, str)
87 self.assertIsInstance(r, str)
210 self.assertIsInstance(r, str)
214 self.assertIsInstance(r, str)
267 self.assertIsInstance(d.keys(), collections.abc.KeysView)
268 self.assertIsInstance(d.keys(), collections.abc.MappingView)
269 self.assertIsInstance(d.keys(), collections.abc.Set)
270 self.assertIsInstance(d.keys(), collections.abc.Sized)
[all …]
Dtest_pwd.py16 self.assertIsInstance(e.pw_name, str)
18 self.assertIsInstance(e.pw_passwd, str)
20 self.assertIsInstance(e.pw_uid, int)
22 self.assertIsInstance(e.pw_gid, int)
24 self.assertIsInstance(e.pw_gecos, str)
26 self.assertIsInstance(e.pw_dir, str)
28 self.assertIsInstance(e.pw_shell, str)
Dtest_mailcap.py74 self.assertIsInstance(mcfiles, list)
76 self.assertIsInstance(m, str)
147 self.assertIsInstance(caps, dict)
153 self.assertIsInstance(k, str)
154 self.assertIsInstance(v, list)
156 self.assertIsInstance(e, dict)
/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/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.py186 self.assertIsInstance(anon, ast.AnonymousBlock)
192 self.assertIsInstance(anon, ast.AnonymousBlock)
205 self.assertIsInstance(s, ast.AttachStatement)
224 self.assertIsInstance(comment, ast.Comment)
230 self.assertIsInstance(ref, ast.FeatureReferenceStatement)
242 self.assertIsInstance(featureNames, ast.NestedBlock)
244 self.assertIsInstance(comment, ast.Comment)
251 self.assertIsInstance(featureNames, ast.NestedBlock)
257 self.assertIsInstance(s, ast.FontRevisionStatement)
422 self.assertIsInstance(s, ast.GlyphClassDefStatement)
[all …]
/external/python/cpython3/Lib/test/test_email/
Dtest_headerregistry.py20 self.assertIsInstance(h, headerregistry.BaseHeader)
21 self.assertIsInstance(h, headerregistry.UnstructuredHeader)
28 self.assertIsInstance(h, headerregistry.BaseHeader)
29 self.assertIsInstance(h, headerregistry.UniqueUnstructuredHeader)
38 self.assertIsInstance(h, self.FooBase)
39 self.assertIsInstance(h, headerregistry.UnstructuredHeader)
47 self.assertIsInstance(h, headerregistry.BaseHeader)
48 self.assertIsInstance(h, self.FooDefault)
53 self.assertIsInstance(h, headerregistry.BaseHeader)
54 self.assertIsInstance(h, headerregistry.UniqueUnstructuredHeader)
[all …]
/external/tensorflow/tensorflow/python/debug/lib/
Ddebug_gradients_test.py75 self.assertIsInstance(w_grad, ops.Tensor)
80 self.assertIsInstance(w_grad, ops.Tensor)
85 self.assertIsInstance(w_grad, ops.Tensor)
106 self.assertIsInstance(w_grad, ops.Tensor)
111 self.assertIsInstance(w_grad, ops.Tensor)
116 self.assertIsInstance(w_grad, ops.Tensor)
144 self.assertIsInstance(dz1_dy, ops.Tensor)
145 self.assertIsInstance(dz2_dy, ops.Tensor)
194 self.assertIsInstance(w_grad, ops.Tensor)
216 self.assertIsInstance(w_grad, ops.Tensor)
[all …]
/external/tensorflow/tensorflow/python/autograph/impl/
Dconversion_test.py62 self.assertIsInstance(fn_node, gast.FunctionDef)
75 self.assertIsInstance(fn_node, gast.FunctionDef)
148 self.assertIsInstance(fn_node, gast.Assign)
149 self.assertIsInstance(fn_node.value, gast.Lambda)
160 self.assertIsInstance(fn_node, gast.Assign)
161 self.assertIsInstance(fn_node.value, gast.Lambda)
183 self.assertIsInstance(fn_node, gast.Assign)
184 self.assertIsInstance(fn_node.value, gast.Lambda)
198 self.assertIsInstance(fn_node, gast.FunctionDef)
/external/python/cpython2/Lib/unittest/test/
Dtest_loader.py76 self.assertIsInstance(suite, loader.suiteClass)
95 self.assertIsInstance(suite, loader.suiteClass)
108 self.assertIsInstance(suite, loader.suiteClass)
122 self.assertIsInstance(suite, loader.suiteClass)
162 self.assertIsInstance(tests, unittest.TestSuite)
169 self.assertIsInstance(suite, unittest.TestSuite)
185 self.assertIsInstance(suite, unittest.TestSuite)
375 self.assertIsInstance(suite, loader.suiteClass)
391 self.assertIsInstance(suite, loader.suiteClass)
406 self.assertIsInstance(suite, loader.suiteClass)
[all …]
/external/python/cpython3/Lib/unittest/test/
Dtest_loader.py102 self.assertIsInstance(suite, loader.suiteClass)
121 self.assertIsInstance(suite, loader.suiteClass)
134 self.assertIsInstance(suite, loader.suiteClass)
148 self.assertIsInstance(suite, loader.suiteClass)
189 self.assertIsInstance(tests, unittest.TestSuite)
196 self.assertIsInstance(suite, unittest.TestSuite)
216 self.assertIsInstance(tests, unittest.TestSuite)
226 self.assertIsInstance(suite, unittest.TestSuite)
245 self.assertIsInstance(tests, unittest.TestSuite)
254 self.assertIsInstance(suite, unittest.TestSuite)
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/beta/
D_implementations_test.py29 self.assertIsInstance(channel_credentials,
35 self.assertIsInstance(channel_credentials,
47 self.assertIsInstance(call_creds, implementations.CallCredentials)
51 self.assertIsInstance(call_creds, implementations.CallCredentials)

12345678910>>...18