Home
last modified time | relevance | path

Searched refs:assertIsInstance (Results 1 – 25 of 214) sorted by relevance

123456789

/third_party/python/Lib/tkinter/test/test_tkinter/
Dtest_font.py29 self.assertIsInstance(options[key], str)
30 self.assertIsInstance(self.font.cget(key), str)
31 self.assertIsInstance(self.font[key], str)
34 self.assertIsInstance(options[key], sizetype)
35 self.assertIsInstance(self.font.cget(key), sizetype)
36 self.assertIsInstance(self.font[key], sizetype)
55 self.assertIsInstance(options[key], str)
56 self.assertIsInstance(self.font.actual(key), str)
59 self.assertIsInstance(options[key], sizetype)
60 self.assertIsInstance(self.font.actual(key), sizetype)
[all …]
/third_party/python/Lib/test/
Dtest_spwd.py15 self.assertIsInstance(entries, list)
17 self.assertIsInstance(entry, spwd.struct_spwd)
25 self.assertIsInstance(entry, spwd.struct_spwd)
29 self.assertIsInstance(entry.sp_pwdp, str)
32 self.assertIsInstance(entry.sp_lstchg, int)
34 self.assertIsInstance(entry.sp_min, int)
36 self.assertIsInstance(entry.sp_max, int)
38 self.assertIsInstance(entry.sp_warn, int)
40 self.assertIsInstance(entry.sp_inact, int)
42 self.assertIsInstance(entry.sp_expire, int)
[all …]
Dtest_raise.py87 self.assertIsInstance(e.__context__, TypeError)
170 self.assertIsInstance(e.__context__, TypeError)
184 self.assertIsInstance(e.__cause__, KeyError)
216 self.assertIsInstance(e.__traceback__, types.TracebackType)
242 self.assertIsInstance(tb.tb_next, types.TracebackType)
244 self.assertIsInstance(tb.tb_lasti, int)
245 self.assertIsInstance(tb.tb_lineno, int)
319 self.assertIsInstance(e.__context__, context)
332 self.assertIsInstance(e.__context__, context)
343 self.assertIsInstance(e.__context__, ZeroDivisionError)
[all …]
Dtest_sys.py187 self.assertIsInstance(sys.getdefaultencoding(), str)
274 self.assertIsInstance(v[0], int)
275 self.assertIsInstance(v[1], int)
276 self.assertIsInstance(v[2], int)
277 self.assertIsInstance(v[3], int)
278 self.assertIsInstance(v[4], str)
280 self.assertIsInstance(v.major, int)
281 self.assertIsInstance(v.minor, int)
282 self.assertIsInstance(v.build, int)
283 self.assertIsInstance(v.platform, int)
[all …]
Dtest_dictviews.py77 self.assertIsInstance(repr(d), str)
79 self.assertIsInstance(r, str)
83 self.assertIsInstance(r, str)
87 self.assertIsInstance(r, str)
111 self.assertIsInstance(d4.keys() & frozenset(d3.keys()), set)
112 self.assertIsInstance(frozenset(d3.keys()) & d4.keys(), set)
256 self.assertIsInstance(r, str)
260 self.assertIsInstance(r, str)
313 self.assertIsInstance(d.keys(), collections.abc.KeysView)
314 self.assertIsInstance(d.keys(), collections.abc.MappingView)
[all …]
Dtest_mailcap.py76 self.assertIsInstance(mcfiles, list)
78 self.assertIsInstance(m, str)
150 self.assertIsInstance(caps, dict)
156 self.assertIsInstance(k, str)
157 self.assertIsInstance(v, list)
159 self.assertIsInstance(e, dict)
Dtest_pwd.py16 self.assertIsInstance(e.pw_name, str)
18 self.assertIsInstance(e.pw_passwd, str)
20 self.assertIsInstance(e.pw_uid, int)
22 self.assertIsInstance(e.pw_gid, int)
26 self.assertIsInstance(e.pw_dir, str)
28 self.assertIsInstance(e.pw_shell, str)
Dtest_secrets.py47 self.assertIsInstance(secrets.compare_digest("abc", "abc"), bool)
48 self.assertIsInstance(secrets.compare_digest("abc", "xyz"), bool)
101 self.assertIsInstance(secrets.token_bytes(n), bytes)
109 self.assertIsInstance(s, str)
119 self.assertIsInstance(s, str)
Dtest_typing.py159 self.assertIsInstance(T, TypeVar)
420 self.assertIsInstance((0, 0), Tuple)
477 self.assertIsInstance(f, Callable)
485 self.assertIsInstance(f, Callable[[], None])
487 self.assertIsInstance(f, Callable[[], Any])
523 self.assertIsInstance(alias, types.GenericAlias)
837 self.assertIsInstance(D(), P)
857 self.assertIsInstance(thing, Empty)
863 self.assertIsInstance(f, HasCallProtocol)
895 self.assertIsInstance(C(), C)
[all …]
Dtest_asdl_parser.py55 self.assertIsInstance(defs[0], self.asdl.Type)
56 self.assertIsInstance(defs[0].value, self.asdl.Sum)
58 self.assertIsInstance(self.types['withitem'], self.asdl.Product)
59 self.assertIsInstance(self.types['alias'], self.asdl.Product)
83 self.assertIsInstance(cons, self.asdl.Constructor)
Dtest_abc.py286 self.assertIsInstance(b, A)
287 self.assertIsInstance(b, (A,))
294 self.assertIsInstance(c, A)
295 self.assertIsInstance(c, (A,))
306 self.assertIsInstance(b, A)
307 self.assertIsInstance(b, (A,))
314 self.assertIsInstance(c, A)
315 self.assertIsInstance(c, (A,))
337 self.assertIsInstance(42, A)
338 self.assertIsInstance(42, (A,))
[all …]
Dtest_grp.py16 self.assertIsInstance(value.gr_name, str)
18 self.assertIsInstance(value.gr_passwd, str)
20 self.assertIsInstance(value.gr_gid, int)
22 self.assertIsInstance(value.gr_mem, list)
Dtest_curses.py669 self.assertIsInstance(curses.tigetflag('hc'), int)
673 self.assertIsInstance(curses.tigetnum('cols'), int)
677 self.assertIsInstance(curses.tigetstr('cr'), (bytes, type(None)))
684 self.assertIsInstance(cud, bytes)
687 self.assertIsInstance(cud_2, bytes)
705 self.assertIsInstance(curses.termname(), bytes)
706 self.assertIsInstance(curses.longname(), bytes)
707 self.assertIsInstance(curses.baudrate(), int)
708 self.assertIsInstance(curses.has_ic(), bool)
709 self.assertIsInstance(curses.has_il(), bool)
[all …]
Dtest_types.py174 self.assertIsInstance(x + 1, int,
176 self.assertIsInstance(-x - 1, int,
178 self.assertIsInstance(-x - 2, int,
597 self.assertIsInstance(object.__init__, types.WrapperDescriptorType)
598 self.assertIsInstance(object.__str__, types.WrapperDescriptorType)
599 self.assertIsInstance(object.__lt__, types.WrapperDescriptorType)
600 self.assertIsInstance(int.__lt__, types.WrapperDescriptorType)
603 self.assertIsInstance(object().__init__, types.MethodWrapperType)
604 self.assertIsInstance(object().__str__, types.MethodWrapperType)
605 self.assertIsInstance(object().__lt__, types.MethodWrapperType)
[all …]
Dtest_collections.py504 self.assertIsInstance(p, tuple)
725 self.assertIsInstance(C(), abc)
798 self.assertIsInstance(x, Awaitable)
808 self.assertIsInstance(c, Awaitable)
848 self.assertIsInstance(x, Awaitable)
858 self.assertIsInstance(c, Coroutine)
897 self.assertIsInstance(x, Hashable)
957 self.assertIsInstance(x, Iterable)
995 self.assertIsInstance(x, Reversible)
1050 self.assertIsInstance(x, Collection)
[all …]
/third_party/python/Lib/unittest/test/testmock/
Dtestasync.py82 self.assertIsInstance(mock_method, AsyncMock)
89 self.assertIsInstance(mock_method, AsyncMock)
96 self.assertIsInstance(mock_method, AsyncMock)
107 self.assertIsInstance(async_func, AsyncMock)
108 self.assertIsInstance(async_func_args, AsyncMock)
137 self.assertIsInstance(mock_method, AsyncMock)
144 self.assertIsInstance(async_func, AsyncMock)
181 self.assertIsInstance(mock, asyncio.Future)
188 self.assertIsInstance(mock_method.async_method, AsyncMock)
189 self.assertIsInstance(mock_method, MagicMock)
[all …]
Dtestmagicmethods.py202 self.assertIsInstance(mock == mock, bool)
204 self.assertIsInstance(mock != mock, bool)
222 self.assertIsInstance(mock == 3, bool)
226 self.assertIsInstance(mock != 3, bool)
265 self.assertIsInstance(mock == object(), bool)
266 self.assertIsInstance(mock != object(), bool)
290 self.assertIsInstance(mock.__aenter__, AsyncMock)
291 self.assertIsInstance(mock.__aexit__, AsyncMock)
316 self.assertIsInstance(mock.__aenter__, AsyncMock)
317 self.assertIsInstance(mock.__aexit__, AsyncMock)
[all …]
Dtestsealable.py17 self.assertIsInstance(m.test, mock.Mock)
18 self.assertIsInstance(m.test(), mock.Mock)
19 self.assertIsInstance(m.test().test2(), mock.Mock)
196 self.assertIsInstance(foo.foo, mock.NonCallableMagicMock)
197 self.assertIsInstance(foo.bar1, mock.MagicMock)
198 self.assertIsInstance(foo.bar2, mock.MagicMock)
199 self.assertIsInstance(foo.Baz, mock.MagicMock)
200 self.assertIsInstance(foo.Baz.baz, mock.NonCallableMagicMock)
201 self.assertIsInstance(foo.Baz.ban, mock.MagicMock)
/third_party/python/Lib/test/test_email/
Dtest_headerregistry.py21 self.assertIsInstance(h, headerregistry.BaseHeader)
22 self.assertIsInstance(h, headerregistry.UnstructuredHeader)
29 self.assertIsInstance(h, headerregistry.BaseHeader)
30 self.assertIsInstance(h, headerregistry.UniqueUnstructuredHeader)
39 self.assertIsInstance(h, self.FooBase)
40 self.assertIsInstance(h, headerregistry.UnstructuredHeader)
48 self.assertIsInstance(h, headerregistry.BaseHeader)
49 self.assertIsInstance(h, self.FooDefault)
54 self.assertIsInstance(h, headerregistry.BaseHeader)
55 self.assertIsInstance(h, headerregistry.UniqueUnstructuredHeader)
[all …]
Dtest_defect_handling.py62 self.assertIsInstance(self.get_defects(inner)[0],
87 self.assertIsInstance(msg.get_payload(), str)
89 self.assertIsInstance(self.get_defects(msg)[0],
91 self.assertIsInstance(self.get_defects(msg)[1],
125 self.assertIsInstance(self.get_defects(msg)[0],
156 self.assertIsInstance(self.get_defects(msg)[0],
158 self.assertIsInstance(self.get_defects(msg)[1],
196 self.assertIsInstance(self.get_defects(bad)[0],
Dtest_parser.py22 self.assertIsInstance(msg, self.MyMessage)
30 self.assertIsInstance(msg, self.MyMessage)
78 self.assertIsInstance(msg, self.MyMessage)
86 self.assertIsInstance(msg, Message)
/third_party/python/Lib/unittest/test/
Dtest_loader.py102 self.assertIsInstance(suite, loader.suiteClass)
121 self.assertIsInstance(suite, loader.suiteClass)
134 self.assertIsInstance(suite, loader.suiteClass)
148 self.assertIsInstance(suite, loader.suiteClass)
189 self.assertIsInstance(tests, unittest.TestSuite)
196 self.assertIsInstance(suite, unittest.TestSuite)
216 self.assertIsInstance(tests, unittest.TestSuite)
226 self.assertIsInstance(suite, unittest.TestSuite)
245 self.assertIsInstance(tests, unittest.TestSuite)
254 self.assertIsInstance(suite, unittest.TestSuite)
[all …]
/third_party/python/Lib/test/test_importlib/extension/
Dtest_loader.py56 self.assertIsInstance(module.__loader__,
137 self.assertIsInstance(module.__loader__,
144 self.assertIsInstance(module, types.ModuleType)
153 self.assertIsInstance(module.Str(), str)
183 self.assertIsInstance(module, types.ModuleType)
190 self.assertIsInstance(module, types.ModuleType)
235 self.assertIsInstance(module, types.ModuleType)
/third_party/python/Lib/sqlite3/test/
Dfactory.py50 self.assertIsInstance(self.con, MyConnection)
61 self.assertIsInstance(cur, sqlite.Cursor)
63 self.assertIsInstance(cur, MyCursor)
65 self.assertIsInstance(cur, MyCursor)
83 self.assertIsInstance(row, dict)
96 self.assertIsInstance(row, list)
101 self.assertIsInstance(row, sqlite.Row)
217 self.assertIsInstance(row, Sequence)
/third_party/python/Lib/tkinter/test/test_ttk/
Dtest_style.py33 self.assertIsInstance(style.configure('TButton'), dict)
46 self.assertIsInstance(m, dict)
56 self.assertIsInstance(m, dict)
66 self.assertIsInstance(m, dict)
98 self.assertIsInstance(style.layout('TButton'), list)

123456789