/third_party/python/Lib/test/ |
D | test_bool.py | 24 self.assertIs(eval(repr(False)), False) 25 self.assertIs(eval(repr(True)), True) 102 self.assertIs(a&b, bool(int(a)&int(b))) 103 self.assertIs(a|b, bool(int(a)|int(b))) 104 self.assertIs(a^b, bool(int(a)^int(b))) 118 self.assertIs(1==1, True) 119 self.assertIs(1==0, False) 120 self.assertIs(0<1, True) 121 self.assertIs(1<0, False) 122 self.assertIs(0<=0, True) [all …]
|
D | test_patma.py | 137 self.assertIs(x, True) 145 self.assertIs(x, True) 153 self.assertIs(x, True) 160 self.assertIs(x, True) 167 self.assertIs(x, True) 174 self.assertIs(x, True) 181 self.assertIs(x, True) 188 self.assertIs(x, False) 321 self.assertIs(y, None) 357 self.assertIs(y, None) [all …]
|
D | test_decorators.py | 86 self.assertIs(wrapper.__func__, func) 87 self.assertIs(wrapper.__wrapped__, func) 91 self.assertIs(getattr(wrapper, attr), 393 self.assertIs(A.f1(), A) 394 self.assertIs(A.f2(), A) 395 self.assertIs(A.f3(), A) 396 self.assertIs(A.f4(), A) 397 self.assertIs(A.f5(), A) 398 self.assertIs(A.f6(), A) 400 self.assertIs(a.f1(), A) [all …]
|
D | test_genericpath.py | 134 self.assertIs(self.pathmodule.exists(filename), False) 135 self.assertIs(self.pathmodule.exists(bfilename), False) 139 self.assertIs(self.pathmodule.exists(filename), True) 140 self.assertIs(self.pathmodule.exists(bfilename), True) 142 self.assertIs(self.pathmodule.exists(filename + '\udfff'), False) 143 self.assertIs(self.pathmodule.exists(bfilename + b'\xff'), False) 144 self.assertIs(self.pathmodule.exists(filename + '\x00'), False) 145 self.assertIs(self.pathmodule.exists(bfilename + b'\x00'), False) 148 self.assertIs(self.pathmodule.lexists(filename), True) 149 self.assertIs(self.pathmodule.lexists(bfilename), True) [all …]
|
D | test_exception_hierarchy.py | 39 self.assertIs(IOError, OSError) 40 self.assertIs(EnvironmentError, OSError) 43 self.assertIs(socket.error, OSError) 44 self.assertIs(socket.gaierror.__base__, OSError) 45 self.assertIs(socket.herror.__base__, OSError) 46 self.assertIs(socket.timeout, TimeoutError) 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) 142 self.assertIs(ex, stop_exc) 163 self.assertIs(ex, stop_exc) 178 self.assertIs(type(ex), RuntimeError) 186 self.assertIs(type(ex), StopIteration) 315 self.assertIs(c_in, c) 413 self.assertIs(result, context) 426 self.assertIs(context.exc[0], NameError) 433 self.assertIs(context.exc[0], NameError) 459 self.assertIs(context.exc[0], NameError) [all …]
|
D | test_enum.py | 232 self.assertIs(Season(Season.WINTER), Season.WINTER) 256 self.assertIs(type(e), Season) 418 self.assertIs(Season.FALL, Season.AUTUMN) 421 self.assertIs(Season(3), Season.AUTUMN) 422 self.assertIs(Season(1), Season.SPRING) 463 self.assertIs(type(Huh.name), Huh) 629 test_pickle_dump_load(self.assertIs, MyEnum.A) 630 test_pickle_dump_load(self.assertIs, MyEnum) 640 self.assertIs(MyOtherEnum._member_type_, SillyInt) 643 test_pickle_dump_load(self.assertIs, MyOtherEnum.E) [all …]
|
D | test_posixpath.py | 119 self.assertIs(posixpath.isabs(""), False) 120 self.assertIs(posixpath.isabs("/"), True) 121 self.assertIs(posixpath.isabs("/foo"), True) 122 self.assertIs(posixpath.isabs("/foo/bar"), True) 123 self.assertIs(posixpath.isabs("foo/bar"), False) 125 self.assertIs(posixpath.isabs(b""), False) 126 self.assertIs(posixpath.isabs(b"/"), True) 127 self.assertIs(posixpath.isabs(b"/foo"), True) 128 self.assertIs(posixpath.isabs(b"/foo/bar"), True) 129 self.assertIs(posixpath.isabs(b"foo/bar"), False) [all …]
|
D | test_cprofile.py | 40 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)
|
D | test_copy.py | 21 self.assertIs(copy.Error, copy.error) 65 self.assertIs(y, x) 76 self.assertIs(y, x) 105 self.assertIs(copy.copy(x), x) 119 self.assertIs(copy.copy(x), x) 121 self.assertIs(copy.copy(x), x) 123 self.assertIs(copy.copy(x), x) 147 self.assertIs(copy.copy(x), x) 149 self.assertIs(copy.copy(x), x) 280 self.assertIs(y[0], y[1]) [all …]
|
D | test_super.py | 100 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])
|
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_format.py | 450 self.assertIs("%s" % text, text) 451 self.assertIs("%.5s" % text, text) 452 self.assertIs("%.10s" % text, text) 453 self.assertIs("%1s" % text, text) 454 self.assertIs("%5s" % text, text) 456 self.assertIs("{0}".format(text), text) 457 self.assertIs("{0:s}".format(text), text) 458 self.assertIs("{0:.5s}".format(text), text) 459 self.assertIs("{0:.10s}".format(text), text) 460 self.assertIs("{0:1s}".format(text), text) [all …]
|
/third_party/python/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 …]
|
/third_party/python/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 | 18 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)
|
/third_party/grpc/src/python/grpcio_tests/tests/unit/ |
D | _rpc_part_1_test.py | 52 self.assertIs(grpc.StatusCode.DEADLINE_EXCEEDED, 76 self.assertIs(grpc.StatusCode.DEADLINE_EXCEEDED, response_future.code()) 77 self.assertIs(grpc.StatusCode.DEADLINE_EXCEEDED, 81 self.assertIs(response_future, value_passed_to_callback) 83 self.assertIs(grpc.StatusCode.DEADLINE_EXCEEDED, response_future.code()) 106 self.assertIs(grpc.StatusCode.UNKNOWN, 132 self.assertIs(grpc.StatusCode.UNKNOWN, 136 self.assertIs(grpc.StatusCode.UNKNOWN, 138 self.assertIs(response_future, value_passed_to_callback) 161 self.assertIs(grpc.StatusCode.UNKNOWN, [all …]
|
D | _rpc_test.py | 292 self.assertIs(grpc.StatusCode.OK, call.code()) 354 self.assertIs(grpc.StatusCode.OK, call.code()) 535 self.assertIs(grpc.StatusCode.CANCELLED, response_future.code()) 565 self.assertIs(grpc.StatusCode.CANCELLED, response_future.code()) 599 self.assertIs(grpc.StatusCode.DEADLINE_EXCEEDED, 617 self.assertIs(response_future, value_passed_to_callback) 619 self.assertIs(grpc.StatusCode.DEADLINE_EXCEEDED, response_future.code()) 624 self.assertIs(grpc.StatusCode.DEADLINE_EXCEEDED, 628 self.assertIs(grpc.StatusCode.DEADLINE_EXCEEDED, 656 self.assertIs(grpc.StatusCode.DEADLINE_EXCEEDED, [all …]
|
/third_party/python/Lib/unittest/test/ |
D | test_skipping.py | 17 self.assertIs(test.run(result), result) 38 self.assertIs(test.run(result), result) 63 self.assertIs(test.run(result), result) 104 self.assertIs(suite.run(result), result) 137 self.assertIs(suite.run(result), result) 160 self.assertIs(suite.run(result), result) 173 self.assertIs(test.run(result), result) 186 self.assertIs(test.run(result), result) 199 self.assertIs(test.run(result), result) 212 self.assertIs(test.run(result), result) [all …]
|
/third_party/python/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)
|
D | test_delegator.py | 14 self.assertIs(mydel.delegate, int) 21 self.assertIs(bl, int.bit_length) 22 self.assertIs(mydel.__dict__['bit_length'], int.bit_length) 40 self.assertIs(mydel.delegate, float)
|
D | test_multicall.py | 29 self.assertIs(multicall._multicall_dict[Text], mc) 32 self.assertIs(mc, mc2) 42 self.assertIs(mc.yview, Text.yview) 44 self.assertIs(mctext.yview.__func__, Text.yview)
|
/third_party/grpc/src/python/grpcio_tests/tests/testing/ |
D | _server_test.py | 49 self.assertIs(code, grpc.StatusCode.OK) 58 self.assertIs(code, grpc.StatusCode.OK) 71 self.assertIs(code, grpc.StatusCode.OK) 96 self.assertIs(code, grpc.StatusCode.OK) 148 self.assertIs(code, later_termination[2]) 151 self.assertIs(code, grpc.StatusCode.OK) 175 self.assertIs(code, grpc.StatusCode.DEADLINE_EXCEEDED) 190 self.assertIs(code, grpc.StatusCode.DEADLINE_EXCEEDED) 197 self.assertIs(code, grpc.StatusCode.PERMISSION_DENIED) 203 self.assertIs(code, grpc.StatusCode.OK)
|
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 …]
|
/third_party/python/Lib/unittest/test/testmock/ |
D | testsentinel.py | 22 self.assertIs(DEFAULT, sentinel.DEFAULT) 33 self.assertIs(unpickled, sentinel.whatever) 36 self.assertIs(copy.copy(sentinel.whatever), sentinel.whatever) 37 self.assertIs(copy.deepcopy(sentinel.whatever), sentinel.whatever)
|