Home
last modified time | relevance | path

Searched refs:assertIs (Results 1 – 25 of 483) sorted by relevance

12345678910>>...20

/external/python/cpython2/Lib/test/
Dtest_bool.py112 self.assertIs(a&b, bool(int(a)&int(b)))
113 self.assertIs(a|b, bool(int(a)|int(b)))
114 self.assertIs(a^b, bool(int(a)^int(b)))
128 self.assertIs(1==1, True)
129 self.assertIs(1==0, False)
130 self.assertIs(0<1, True)
131 self.assertIs(1<0, False)
132 self.assertIs(0<=0, True)
133 self.assertIs(1<=0, False)
134 self.assertIs(1>0, True)
[all …]
Dtest_posixpath.py81 self.assertIs(posixpath.isabs(""), False)
82 self.assertIs(posixpath.isabs("/"), True)
83 self.assertIs(posixpath.isabs("/foo"), True)
84 self.assertIs(posixpath.isabs("/foo/bar"), True)
85 self.assertIs(posixpath.isabs("foo/bar"), False)
102 self.assertIs(posixpath.islink(test_support.TESTFN + "1"), False)
107 self.assertIs(posixpath.islink(test_support.TESTFN + "1"), False)
110 self.assertIs(posixpath.islink(test_support.TESTFN + "2"), True)
112 self.assertIs(posixpath.islink(test_support.TESTFN + "2"), True)
113 self.assertIs(posixpath.exists(test_support.TESTFN + "2"), False)
[all …]
/external/python/cpython3/Lib/test/
Dtest_bool.py111 self.assertIs(a&b, bool(int(a)&int(b)))
112 self.assertIs(a|b, bool(int(a)|int(b)))
113 self.assertIs(a^b, bool(int(a)^int(b)))
127 self.assertIs(1==1, True)
128 self.assertIs(1==0, False)
129 self.assertIs(0<1, True)
130 self.assertIs(1<0, False)
131 self.assertIs(0<=0, True)
132 self.assertIs(1<=0, False)
133 self.assertIs(1>0, True)
[all …]
Dtest_genericpath.py133 self.assertIs(self.pathmodule.exists(filename), False)
134 self.assertIs(self.pathmodule.exists(bfilename), False)
138 self.assertIs(self.pathmodule.exists(filename), True)
139 self.assertIs(self.pathmodule.exists(bfilename), True)
141 self.assertIs(self.pathmodule.exists(filename + '\udfff'), False)
142 self.assertIs(self.pathmodule.exists(bfilename + b'\xff'), False)
143 self.assertIs(self.pathmodule.exists(filename + '\x00'), False)
144 self.assertIs(self.pathmodule.exists(bfilename + b'\x00'), False)
147 self.assertIs(self.pathmodule.lexists(filename), True)
148 self.assertIs(self.pathmodule.lexists(bfilename), True)
[all …]
Dtest_exception_hierarchy.py39 self.assertIs(IOError, OSError)
40 self.assertIs(EnvironmentError, OSError)
43 self.assertIs(socket.error, IOError)
44 self.assertIs(socket.gaierror.__base__, OSError)
45 self.assertIs(socket.herror.__base__, OSError)
46 self.assertIs(socket.timeout.__base__, OSError)
49 self.assertIs(select.error, OSError)
86 self.assertIs(type(e), FileExistsError)
90 self.assertIs(type(e), exc)
94 self.assertIs(type(e), OSError)
[all …]
Dtest_contextlib.py21 self.assertIs(manager.__enter__(), manager)
138 self.assertIs(ex, stop_exc)
159 self.assertIs(ex, stop_exc)
174 self.assertIs(type(ex), RuntimeError)
182 self.assertIs(type(ex), StopIteration)
309 self.assertIs(c_in, c)
407 self.assertIs(result, context)
420 self.assertIs(context.exc[0], NameError)
427 self.assertIs(context.exc[0], NameError)
453 self.assertIs(context.exc[0], NameError)
[all …]
Dtest_posixpath.py116 self.assertIs(posixpath.isabs(""), False)
117 self.assertIs(posixpath.isabs("/"), True)
118 self.assertIs(posixpath.isabs("/foo"), True)
119 self.assertIs(posixpath.isabs("/foo/bar"), True)
120 self.assertIs(posixpath.isabs("foo/bar"), False)
122 self.assertIs(posixpath.isabs(b""), False)
123 self.assertIs(posixpath.isabs(b"/"), True)
124 self.assertIs(posixpath.isabs(b"/foo"), True)
125 self.assertIs(posixpath.isabs(b"/foo/bar"), True)
126 self.assertIs(posixpath.isabs(b"foo/bar"), False)
[all …]
Dtest_enum.py220 self.assertIs(Season(Season.WINTER), Season.WINTER)
244 self.assertIs(type(e), Season)
385 self.assertIs(Season.FALL, Season.AUTUMN)
388 self.assertIs(Season(3), Season.AUTUMN)
389 self.assertIs(Season(1), Season.SPRING)
430 self.assertIs(type(Huh.name), Huh)
683 self.assertIs(type(e), WeekDay)
696 self.assertIs(WeekDay.TEUSDAY, WeekDay.TUESDAY)
702 self.assertIs(IntStooges.from_bytes(b'\x00\x03', 'big'), IntStooges.MOE)
708 self.assertIs(FloatStooges.fromhex(h), FloatStooges.MOE)
[all …]
Dtest_cprofile.py40 self.assertIs(sys.getprofile(), prof)
43 self.assertIs(sys.getprofile(), None)
52 self.assertIs(prof, __enter__return_value)
56 self.assertIs(sys.getprofile(), prof)
59 self.assertIs(sys.getprofile(), None)
Dtest_copy.py20 self.assertIs(copy.Error, copy.error)
64 self.assertIs(y, x)
75 self.assertIs(y, x)
104 self.assertIs(copy.copy(x), x)
118 self.assertIs(copy.copy(x), x)
120 self.assertIs(copy.copy(x), x)
122 self.assertIs(copy.copy(x), x)
146 self.assertIs(copy.copy(x), x)
148 self.assertIs(copy.copy(x), x)
279 self.assertIs(y[0], y[1])
[all …]
Dtest_types.py958 self.assertIs(meta, A)
959 self.assertIs(ns, expected_ns)
1004 self.assertIs(types.resolve_bases(bases), bases)
1073 self.assertIs(marker, X)
1074 self.assertIs(marker, Y)
1075 self.assertIs(marker, Z)
1101 self.assertIs(ANotMeta, type(A))
1108 self.assertIs(BNotMeta, type(B))
1115 self.assertIs(BNotMeta, type(C))
1122 self.assertIs(BNotMeta, type(C2))
[all …]
Dtest_super.py100 self.assertIs(X.x, type(self))
106 self.assertIs(type(e.exception), NameError) # Not UnboundLocalError
127 self.assertIs(X().f(), X)
135 self.assertIs(X.f(), X)
143 self.assertIs(X.f(), X)
162 self.assertIs(test_class, A)
179 self.assertIs(A, None)
182 self.assertIs(B.f(), B)
199 self.assertIs(test_class, A)
227 self.assertIs(class_cell, method_closure[0])
/external/python/cpython3/Lib/test/test_importlib/
Dtest_spec.py82 self.assertIs(spec.origin, None)
83 self.assertIs(spec.loader_state, None)
84 self.assertIs(spec.submodule_search_locations, None)
85 self.assertIs(spec.cached, None)
92 self.assertIs(spec.loader, None)
93 self.assertIs(spec.origin, None)
94 self.assertIs(spec.loader_state, None)
95 self.assertIs(spec.submodule_search_locations, None)
96 self.assertIs(spec.cached, None)
105 self.assertIs(spec.origin, None)
[all …]
/external/tensorflow/tensorflow/python/framework/
Ddtypes_test.py82 self.assertIs(dtypes.float32, dtypes.as_dtype(np.float32))
83 self.assertIs(dtypes.float64, dtypes.as_dtype(np.float64))
84 self.assertIs(dtypes.int32, dtypes.as_dtype(np.int32))
85 self.assertIs(dtypes.int64, dtypes.as_dtype(np.int64))
86 self.assertIs(dtypes.uint8, dtypes.as_dtype(np.uint8))
87 self.assertIs(dtypes.uint16, dtypes.as_dtype(np.uint16))
88 self.assertIs(dtypes.int16, dtypes.as_dtype(np.int16))
89 self.assertIs(dtypes.int8, dtypes.as_dtype(np.int8))
90 self.assertIs(dtypes.complex64, dtypes.as_dtype(np.complex64))
91 self.assertIs(dtypes.complex128, dtypes.as_dtype(np.complex128))
[all …]
/external/python/cpython2/Lib/ctypes/test/
Dtest_byteswap.py27 self.assertIs(c_short.__ctype_le__, c_short)
28 self.assertIs(c_short.__ctype_be__.__ctype_le__, c_short)
30 self.assertIs(c_short.__ctype_be__, c_short)
31 self.assertIs(c_short.__ctype_le__.__ctype_be__, c_short)
54 self.assertIs(c_int.__ctype_le__, c_int)
55 self.assertIs(c_int.__ctype_be__.__ctype_le__, c_int)
57 self.assertIs(c_int.__ctype_be__, c_int)
58 self.assertIs(c_int.__ctype_le__.__ctype_be__, c_int)
82 self.assertIs(c_longlong.__ctype_le__, c_longlong)
83 self.assertIs(c_longlong.__ctype_be__.__ctype_le__, c_longlong)
[all …]
Dtest_wintypes.py17 self.assertIs(vb.value, False)
19 self.assertIs(vb.value, True)
21 self.assertIs(vb.value, True)
32 self.assertIs(vb.value, True)
36 self.assertIs(vb.value, True)
38 self.assertIs(vb.value, False)
/external/python/cpython3/Lib/ctypes/test/
Dtest_byteswap.py47 self.assertIs(c_short.__ctype_le__, c_short)
48 self.assertIs(c_short.__ctype_be__.__ctype_le__, c_short)
50 self.assertIs(c_short.__ctype_be__, c_short)
51 self.assertIs(c_short.__ctype_le__.__ctype_be__, c_short)
74 self.assertIs(c_int.__ctype_le__, c_int)
75 self.assertIs(c_int.__ctype_be__.__ctype_le__, c_int)
77 self.assertIs(c_int.__ctype_be__, c_int)
78 self.assertIs(c_int.__ctype_le__.__ctype_be__, c_int)
102 self.assertIs(c_longlong.__ctype_le__, c_longlong)
103 self.assertIs(c_longlong.__ctype_be__.__ctype_le__, c_longlong)
[all …]
Dtest_wintypes.py18 self.assertIs(vb.value, False)
20 self.assertIs(vb.value, True)
22 self.assertIs(vb.value, True)
33 self.assertIs(vb.value, True)
37 self.assertIs(vb.value, True)
39 self.assertIs(vb.value, False)
/external/tensorflow/tensorflow/python/distribute/
Ddistribute_lib_test.py127 t.assertIs(ds_context._get_default_replica_context(),
129 t.assertIs(None, ds_context.get_cross_replica_context())
131 t.assertIs(ds_context._get_default_strategy(), ds_context.get_strategy())
163 self.assertIs(None, ds_context.get_cross_replica_context())
166 self.assertIs(dist, ds_context.get_strategy())
183 self.assertIs(None, ds_context.get_replica_context())
184 self.assertIs(dist, ds_context.get_cross_replica_context())
187 self.assertIs(dist, ds_context.get_strategy())
202 self.assertIs(dist, ds_context.get_strategy())
218 self.assertIs(dist, ds_context.get_strategy())
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_warning.py35 self.assertIs(warnings.showwarning, showwarning)
37 self.assertIs(warnings.showwarning, run.idle_showwarning_subproc)
39 self.assertIs(warnings.showwarning, showwarning)
53 self.assertIs(warnings.showwarning, showwarning)
55 self.assertIs(warnings.showwarning, shell.idle_showwarning)
57 self.assertIs(warnings.showwarning, showwarning)
/external/python/cpython2/Lib/idlelib/idle_test/
Dtest_warning.py36 self.assertIs(warnings.showwarning, showwarning)
38 self.assertIs(warnings.showwarning, run.idle_showwarning_subproc)
40 self.assertIs(warnings.showwarning, showwarning)
53 self.assertIs(warnings.showwarning, showwarning)
55 self.assertIs(warnings.showwarning, shell.idle_showwarning)
57 self.assertIs(warnings.showwarning, showwarning)
/external/pigweed/pw_rpc/py/tests/
Dclient_test.py91 self.assertIs(self._channel_client.rpcs.pw.test1.PublicService,
93 self.assertIs(
99 self.assertIs(self._channel_client.rpcs.pw.test2.Alpha.Unary,
101 self.assertIs(
156 self.assertIs(self._channel_client.method('pw.test2.Alpha/Unary'),
158 self.assertIs(self._channel_client.method('pw.test2.Alpha.Unary'),
202 self.assertIs(
205 self.assertIs(
221 self.assertIs(self._client.process_packet(b'NOT a packet!'),
225 self.assertIs(
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/
D_rpc_test.py227 self.assertIs(grpc.StatusCode.OK, call.code())
289 self.assertIs(grpc.StatusCode.OK, call.code())
475 self.assertIs(grpc.StatusCode.OK, response_iterator.code())
496 self.assertIs(grpc.StatusCode.CANCELLED, response_future.code())
511 self.assertIs(grpc.StatusCode.CANCELLED,
514 self.assertIs(grpc.StatusCode.CANCELLED, response_iterator.code())
539 self.assertIs(grpc.StatusCode.CANCELLED, response_future.code())
558 self.assertIs(grpc.StatusCode.CANCELLED, response_iterator.code())
576 self.assertIs(grpc.StatusCode.DEADLINE_EXCEEDED,
594 self.assertIs(response_future, value_passed_to_callback)
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dtemplate_test.py174 self.assertIs(v, tpl.variables[0])
186 self.assertIs(v1, v2)
222 self.assertIs(v1, v2)
223 self.assertIs(v1, v3)
238 self.assertIs(v1, v2)
251 self.assertIs(v1, v2)
275 self.assertIs(v1, v2)
300 self.assertIs(tmpl(), tmpl())
307 self.assertIs(tmpl(name="1"), tmpl(name="2"))
318 self.assertIs(v1, v2)
[all …]
/external/grpc-grpc/src/python/grpcio_tests/tests/testing/
D_server_test.py48 self.assertIs(code, grpc.StatusCode.OK)
57 self.assertIs(code, grpc.StatusCode.OK)
70 self.assertIs(code, grpc.StatusCode.OK)
95 self.assertIs(code, grpc.StatusCode.OK)
123 self.assertIs(code, later_termination[2])
126 self.assertIs(code, grpc.StatusCode.OK)
150 self.assertIs(code, grpc.StatusCode.DEADLINE_EXCEEDED)
165 self.assertIs(code, grpc.StatusCode.DEADLINE_EXCEEDED)

12345678910>>...20