/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 …]
|
D | test_richcmp.py | 287 self.assertIs(x<x, False) 288 self.assertIs(x<=x, True) 289 self.assertIs(x==x, True) 290 self.assertIs(x!=x, False) 291 self.assertIs(x>x, False) 292 self.assertIs(x>=x, True) 294 self.assertIs(x<y, True) 295 self.assertIs(x<=y, True) 296 self.assertIs(x==y, False) 297 self.assertIs(x!=y, True) [all …]
|
D | test_runpy.py | 46 self.assertIs(d["__name__"], None) 47 self.assertIs(d["__file__"], None) 48 self.assertIs(d["__loader__"], None) 49 self.assertIs(d["__package__"], None) 50 self.assertIs(d["run_argv0"], saved_argv0) 52 self.assertIs(sys.argv[0], saved_argv0) 69 self.assertIs(d2["initial"], initial) 72 self.assertIs(d2["__name__"], name) 75 self.assertIs(d2["__file__"], file) 76 self.assertIs(d2["run_argv0"], file) [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_enum.py | 204 self.assertIs(Season(Season.WINTER), Season.WINTER) 228 self.assertIs(type(e), Season) 366 self.assertIs(Season.FALL, Season.AUTUMN) 369 self.assertIs(Season(3), Season.AUTUMN) 370 self.assertIs(Season(1), Season.SPRING) 411 self.assertIs(type(Huh.name), Huh) 563 self.assertIs(type(e), WeekDay) 576 self.assertIs(WeekDay.TEUSDAY, WeekDay.TUESDAY) 582 self.assertIs(IntStooges.from_bytes(b'\x00\x03', 'big'), IntStooges.MOE) 588 self.assertIs(FloatStooges.fromhex(h), FloatStooges.MOE) [all …]
|
D | test_contextlib.py | 23 self.assertIs(manager.__enter__(), manager) 130 self.assertIs(ex, stop_exc) 151 self.assertIs(ex, stop_exc) 321 self.assertIs(result, context) 334 self.assertIs(context.exc[0], NameError) 341 self.assertIs(context.exc[0], NameError) 367 self.assertIs(context.exc[0], NameError) 505 self.assertIs(f, _exit) 507 self.assertIs(wrapper.__wrapped__, _exit) 515 self.assertIs(exc_type, exc_raised) [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_types.py | 845 self.assertIs(meta, A) 846 self.assertIs(ns, expected_ns) 916 self.assertIs(marker, X) 917 self.assertIs(marker, Y) 918 self.assertIs(marker, Z) 944 self.assertIs(ANotMeta, type(A)) 951 self.assertIs(BNotMeta, type(B)) 958 self.assertIs(BNotMeta, type(C)) 965 self.assertIs(BNotMeta, type(C2)) 977 self.assertIs(BNotMeta, type(E)) [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_super.py | 103 self.assertIs(X.x, type(self)) 109 self.assertIs(type(e.exception), NameError) # Not UnboundLocalError 130 self.assertIs(X().f(), X) 138 self.assertIs(X.f(), X) 146 self.assertIs(X.f(), X) 165 self.assertIs(test_class, A) 186 self.assertIs(A, None) 189 self.assertIs(B.f(), B) 206 self.assertIs(test_class, A) 234 self.assertIs(class_cell, method_closure[0]) [all …]
|
D | test_fileinput.py | 614 self.assertIs(instance, fileinput._state, "fileinput._state") 654 self.assertIs(result, fileinput._state, "fileinput._state") 658 self.assertIs(files, result.files, "files") 659 self.assertIs(inplace, result.inplace, "inplace") 660 self.assertIs(backup, result.backup, "backup") 661 self.assertIs(bufsize, result.bufsize, "bufsize") 662 self.assertIs(mode, result.mode, "mode") 663 self.assertIs(openhook, result.openhook, "openhook") 708 self.assertIs(retval, nextfile_retval) 709 self.assertIs(fileinput._state, instance) [all …]
|
D | test_format.py | 447 self.assertIs("%s" % text, text) 448 self.assertIs("%.5s" % text, text) 449 self.assertIs("%.10s" % text, text) 450 self.assertIs("%1s" % text, text) 451 self.assertIs("%5s" % text, text) 453 self.assertIs("{0}".format(text), text) 454 self.assertIs("{0:s}".format(text), text) 455 self.assertIs("{0:.5s}".format(text), text) 456 self.assertIs("{0:.10s}".format(text), text) 457 self.assertIs("{0:1s}".format(text), text) [all …]
|
D | test_posixpath.py | 114 self.assertIs(posixpath.isabs(""), False) 115 self.assertIs(posixpath.isabs("/"), True) 116 self.assertIs(posixpath.isabs("/foo"), True) 117 self.assertIs(posixpath.isabs("/foo/bar"), True) 118 self.assertIs(posixpath.isabs("foo/bar"), False) 120 self.assertIs(posixpath.isabs(b""), False) 121 self.assertIs(posixpath.isabs(b"/"), True) 122 self.assertIs(posixpath.isabs(b"/foo"), True) 123 self.assertIs(posixpath.isabs(b"/foo/bar"), True) 124 self.assertIs(posixpath.isabs(b"foo/bar"), False) [all …]
|
D | test_richcmp.py | 311 self.assertIs(x<x, False) 312 self.assertIs(x<=x, True) 313 self.assertIs(x==x, True) 314 self.assertIs(x!=x, False) 315 self.assertIs(x>x, False) 316 self.assertIs(x>=x, True) 318 self.assertIs(x<y, True) 319 self.assertIs(x<=y, True) 320 self.assertIs(x==y, False) 321 self.assertIs(x!=y, True) [all …]
|
D | test_complex.py | 119 self.assertIs(complex.__eq__(1+1j, 1<<10000), False) 120 self.assertIs(complex.__lt__(1+1j, None), NotImplemented) 121 self.assertIs(complex.__eq__(1+1j, 1+1j), True) 122 self.assertIs(complex.__eq__(1+1j, 2+2j), False) 123 self.assertIs(complex.__ne__(1+1j, 1+1j), False) 124 self.assertIs(complex.__ne__(1+1j, 2+2j), True) 127 self.assertIs(complex.__eq__(f+0j, f), True) 128 self.assertIs(complex.__ne__(f+0j, f), False) 129 self.assertIs(complex.__eq__(complex(f, f), f), False) 130 self.assertIs(complex.__ne__(complex(f, f), f), True) [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 | 61 self.assertIs(None, dim.value) 72 self.assertIs(None, 74 self.assertIs(None, 76 self.assertIs(None, 78 self.assertIs(None, 100 self.assertIs(None, 102 self.assertIs(None, 104 self.assertIs(None, 106 self.assertIs(None, 108 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/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 | 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)
|