/external/python/cpython2/Lib/test/ |
D | test_bool.py | 112 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 …]
|
D | test_posixpath.py | 81 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/ |
D | test_bool.py | 113 self.assertIs(a&b, bool(int(a)&int(b))) 114 self.assertIs(a|b, bool(int(a)|int(b))) 115 self.assertIs(a^b, bool(int(a)^int(b))) 129 self.assertIs(1==1, True) 130 self.assertIs(1==0, False) 131 self.assertIs(0<1, True) 132 self.assertIs(1<0, False) 133 self.assertIs(0<=0, True) 134 self.assertIs(1<=0, False) 135 self.assertIs(1>0, True) [all …]
|
D | test_exception_hierarchy.py | 39 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 …]
|
D | test_contextlib.py | 22 self.assertIs(manager.__enter__(), manager) 139 self.assertIs(ex, stop_exc) 160 self.assertIs(ex, stop_exc) 175 self.assertIs(type(ex), RuntimeError) 183 self.assertIs(type(ex), StopIteration) 310 self.assertIs(c_in, c) 408 self.assertIs(result, context) 421 self.assertIs(context.exc[0], NameError) 428 self.assertIs(context.exc[0], NameError) 454 self.assertIs(context.exc[0], NameError) [all …]
|
D | test_enum.py | 222 self.assertIs(Season(Season.WINTER), Season.WINTER) 246 self.assertIs(type(e), Season) 392 self.assertIs(Season.FALL, Season.AUTUMN) 395 self.assertIs(Season(3), Season.AUTUMN) 396 self.assertIs(Season(1), Season.SPRING) 437 self.assertIs(type(Huh.name), Huh) 589 self.assertIs(type(e), WeekDay) 602 self.assertIs(WeekDay.TEUSDAY, WeekDay.TUESDAY) 608 self.assertIs(IntStooges.from_bytes(b'\x00\x03', 'big'), IntStooges.MOE) 614 self.assertIs(FloatStooges.fromhex(h), FloatStooges.MOE) [all …]
|
D | test_types.py | 929 self.assertIs(meta, A) 930 self.assertIs(ns, expected_ns) 975 self.assertIs(types.resolve_bases(bases), bases) 1044 self.assertIs(marker, X) 1045 self.assertIs(marker, Y) 1046 self.assertIs(marker, Z) 1072 self.assertIs(ANotMeta, type(A)) 1079 self.assertIs(BNotMeta, type(B)) 1086 self.assertIs(BNotMeta, type(C)) 1093 self.assertIs(BNotMeta, type(C2)) [all …]
|
D | test_super.py | 102 self.assertIs(X.x, type(self)) 108 self.assertIs(type(e.exception), NameError) # Not UnboundLocalError 129 self.assertIs(X().f(), X) 137 self.assertIs(X.f(), X) 145 self.assertIs(X.f(), X) 164 self.assertIs(test_class, A) 185 self.assertIs(A, None) 188 self.assertIs(B.f(), B) 205 self.assertIs(test_class, A) 233 self.assertIs(class_cell, method_closure[0]) [all …]
|
D | test_copy.py | 20 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 …]
|
D | test_format.py | 446 self.assertIs("%s" % text, text) 447 self.assertIs("%.5s" % text, text) 448 self.assertIs("%.10s" % text, text) 449 self.assertIs("%1s" % text, text) 450 self.assertIs("%5s" % text, text) 452 self.assertIs("{0}".format(text), text) 453 self.assertIs("{0:s}".format(text), text) 454 self.assertIs("{0:.5s}".format(text), text) 455 self.assertIs("{0:.10s}".format(text), text) 456 self.assertIs("{0:1s}".format(text), text) [all …]
|
D | test_contextlib_async.py | 34 self.assertIs(await manager.__aenter__(), manager) 37 self.assertIs(manager, context) 194 self.assertIs(ex, stop_exc) 324 self.assertIs(f, _exit) 326 self.assertIs(wrapper[1].__wrapped__, _exit) 336 self.assertIs(exc_type, exc_raised) 353 self.assertIs(stack._exit_callbacks[-1][1], _expect_ok) 356 self.assertIs(stack._exit_callbacks[-1][1].__self__, cm) 358 self.assertIs(stack._exit_callbacks[-1][1], _suppress_exc) 361 self.assertIs(stack._exit_callbacks[-1][1].__self__, cm) [all …]
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_spec.py | 82 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/ |
D | dtypes_test.py | 74 self.assertIs(dtypes.float32, dtypes.as_dtype(np.float32)) 75 self.assertIs(dtypes.float64, dtypes.as_dtype(np.float64)) 76 self.assertIs(dtypes.int32, dtypes.as_dtype(np.int32)) 77 self.assertIs(dtypes.int64, dtypes.as_dtype(np.int64)) 78 self.assertIs(dtypes.uint8, dtypes.as_dtype(np.uint8)) 79 self.assertIs(dtypes.uint16, dtypes.as_dtype(np.uint16)) 80 self.assertIs(dtypes.int16, dtypes.as_dtype(np.int16)) 81 self.assertIs(dtypes.int8, dtypes.as_dtype(np.int8)) 82 self.assertIs(dtypes.complex64, dtypes.as_dtype(np.complex64)) 83 self.assertIs(dtypes.complex128, dtypes.as_dtype(np.complex128)) [all …]
|
D | tensor_shape_test.py | 70 self.assertIs(None, dim.value) 81 self.assertIs(None, 83 self.assertIs(None, 85 self.assertIs(None, 87 self.assertIs(None, 109 self.assertIs(None, 111 self.assertIs(None, 113 self.assertIs(None, 115 self.assertIs(None, 117 self.assertIs(None, [all …]
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_byteswap.py | 27 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 …]
|
D | test_wintypes.py | 17 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/ |
D | test_byteswap.py | 47 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 …]
|
D | test_wintypes.py | 17 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/tensorflow/tensorflow/python/distribute/ |
D | distribute_lib_test.py | 63 t.assertIs(ds_context._get_default_replica_context(), 65 t.assertIs(None, ds_context.get_cross_replica_context()) 67 t.assertIs(ds_context._get_default_strategy(), ds_context.get_strategy()) 80 self.assertIs(None, ds_context.get_cross_replica_context()) 83 self.assertIs(dist, ds_context.get_strategy()) 100 self.assertIs(None, ds_context.get_replica_context()) 101 self.assertIs(dist, ds_context.get_cross_replica_context()) 104 self.assertIs(dist, ds_context.get_strategy()) 135 self.assertIs(ds_context._get_default_strategy(), dist) 136 self.assertIs(None, ds_context.get_replica_context()) [all …]
|
/external/grpc-grpc/src/python/grpcio_tests/tests/unit/ |
D | _rpc_test.py | 227 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/python/cpython2/Lib/idlelib/idle_test/ |
D | test_warning.py | 36 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/python/cpython3/Lib/idlelib/idle_test/ |
D | test_warning.py | 35 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/grpc-grpc/src/python/grpcio_tests/tests/testing/ |
D | _server_test.py | 48 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)
|
D | _client_test.py | 66 self.assertIs(application_return_value.kind, 81 self.assertIs(application_return_value.kind, 105 self.assertIs(application_return_value.kind, 128 self.assertIs(application_return_value.kind, 163 self.assertIs(application_return_value.kind, 179 self.assertIs(application_return_value.kind, 208 self.assertIs(application_return_value.kind, 234 self.assertIs(application_return_value.kind, 236 self.assertIs(application_return_value.code, code) 252 self.assertIs(application_return_value.kind, [all …]
|
/external/tensorflow/tensorflow/contrib/stateless/python/kernel_tests/ |
D | stateless_random_ops_test.py | 32 self.assertIs(stateless.stateless_random_uniform, 34 self.assertIs(stateless.stateless_random_normal, 36 self.assertIs(stateless.stateless_truncated_normal, 38 self.assertIs(stateless.stateless_multinomial,
|