Home
last modified time | relevance | path

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

1234567891011

/third_party/python/Lib/test/
Dtest_bool.py24 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 …]
Dtest_patma.py137 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 …]
Dtest_decorators.py86 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 …]
Dtest_genericpath.py134 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 …]
Dtest_exception_hierarchy.py39 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 …]
Dtest_contextlib.py22 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 …]
Dtest_enum.py232 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 …]
Dtest_posixpath.py119 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 …]
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.py21 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 …]
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])
Dtest_richcmp.py311 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 …]
Dtest_format.py450 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/
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 …]
/third_party/python/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)
/third_party/grpc/src/python/grpcio_tests/tests/unit/
D_rpc_part_1_test.py52 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.py292 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/
Dtest_skipping.py17 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/
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)
Dtest_delegator.py14 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)
Dtest_multicall.py29 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.py49 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.py66 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/
Dtestsentinel.py22 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)

1234567891011