/third_party/python/Lib/tkinter/test/test_tkinter/ |
H A D | test_font.py | 29 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(sel [all...] |
/third_party/python/Lib/test/ |
H A D | test_spwd.py | 18 self.assertIsInstance(entries, list) 20 self.assertIsInstance(entry, spwd.struct_spwd) 28 self.assertIsInstance(entry, spwd.struct_spwd) 32 self.assertIsInstance(entry.sp_pwdp, str) 35 self.assertIsInstance(entry.sp_lstchg, int) 37 self.assertIsInstance(entry.sp_min, int) 39 self.assertIsInstance(entry.sp_max, int) 41 self.assertIsInstance(entry.sp_warn, int) 43 self.assertIsInstance(entry.sp_inact, int) 45 self.assertIsInstance(entr [all...] |
H A D | test_dictviews.py | 77 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( [all...] |
H A D | test_sys.py | 91 self.assertIsInstance(e, ValueError) 106 self.assertIsInstance(e, ValueError) 121 self.assertIsInstance(e, ValueError) 134 self.assertIsInstance(e, ValueError) 252 self.assertIsInstance(sys.getdefaultencoding(), str) 339 self.assertIsInstance(v[0], int) 340 self.assertIsInstance(v[1], int) 341 self.assertIsInstance(v[2], int) 342 self.assertIsInstance(v[3], int) 343 self.assertIsInstance( [all...] |
H A D | test_raise.py | 87 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( [all...] |
H A D | test_pwd.py | 16 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)
|
H A D | test_mailcap.py | 81 self.assertIsInstance(mcfiles, list) 83 self.assertIsInstance(m, str) 155 self.assertIsInstance(caps, dict) 161 self.assertIsInstance(k, str) 162 self.assertIsInstance(v, list) 164 self.assertIsInstance(e, dict)
|
H A D | test_secrets.py | 47 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)
|
H A D | test_asdl_parser.py | 55 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)
|
H A D | test_grp.py | 16 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)
|
H A D | test_types.py | 174 self.assertIsInstance(x + 1, int, 176 self.assertIsInstance(-x - 1, int, 178 self.assertIsInstance(-x - 2, int, 595 self.assertIsInstance(object.__init__, types.WrapperDescriptorType) 596 self.assertIsInstance(object.__str__, types.WrapperDescriptorType) 597 self.assertIsInstance(object.__lt__, types.WrapperDescriptorType) 598 self.assertIsInstance(int.__lt__, types.WrapperDescriptorType) 607 self.assertIsInstance(object().__init__, types.MethodWrapperType) 608 self.assertIsInstance(object().__str__, types.MethodWrapperType) 609 self.assertIsInstance(objec [all...] |
H A D | test_exception_group.py | 19 self.assertIsInstance(ExceptionGroup[E], types.GenericAlias) 20 self.assertIsInstance(BaseExceptionGroup[E], types.GenericAlias) 239 self.assertIsInstance(eg.exceptions[0], ValueError) 240 self.assertIsInstance(eg.exceptions[0].__cause__, MemoryError) 241 self.assertIsInstance(eg.exceptions[0].__context__, MemoryError) 242 self.assertIsInstance(eg.exceptions[1], TypeError) 244 self.assertIsInstance(eg.exceptions[1].__context__, OSError) 245 self.assertIsInstance(eg.exceptions[2], ValueError) 247 self.assertIsInstance(eg.exceptions[2].__context__, ImportError) 289 self.assertIsInstance(templat [all...] |
H A D | test_abc.py | 286 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(4 [all...] |
H A D | test_curses.py | 674 self.assertIsInstance(curses.tigetflag('hc'), int) 678 self.assertIsInstance(curses.tigetnum('cols'), int) 682 self.assertIsInstance(curses.tigetstr('cr'), (bytes, type(None))) 689 self.assertIsInstance(cud, bytes) 692 self.assertIsInstance(cud_2, bytes) 710 self.assertIsInstance(curses.termname(), bytes) 711 self.assertIsInstance(curses.longname(), bytes) 712 self.assertIsInstance(curses.baudrate(), int) 713 self.assertIsInstance(curses.has_ic(), bool) 714 self.assertIsInstance(curse [all...] |
H A D | test__opcode.py | 80 self.assertIsInstance(stats, dict) 86 self.assertIsInstance(stats['load_attr'][sn], int) 87 self.assertIsInstance( 91 self.assertIsInstance(v, int)
|
H A D | test_typing.py | 129 self.assertIsInstance(Mock(), Mock) 138 self.assertIsInstance(ms, MockSomething) 139 self.assertIsInstance(ms, Something) 140 self.assertIsInstance(ms, Mock) 366 self.assertIsInstance(T, TypeVar) 927 self.assertIsInstance(Ts, TypeVarTuple) 1871 self.assertIsInstance((0, 0), Tuple) 1938 self.assertIsInstance(f, Callable) 1946 self.assertIsInstance(f, Callable[[], None]) 1948 self.assertIsInstance( [all...] |
/third_party/python/Lib/unittest/test/testmock/ |
H A D | testasync.py | 85 self.assertIsInstance(mock_method, AsyncMock) 92 self.assertIsInstance(mock_method, AsyncMock) 99 self.assertIsInstance(mock_method, AsyncMock) 110 self.assertIsInstance(async_func, AsyncMock) 111 self.assertIsInstance(async_func_args, AsyncMock) 140 self.assertIsInstance(mock_method, AsyncMock) 147 self.assertIsInstance(async_func, AsyncMock) 200 self.assertIsInstance(mock, asyncio.Future) 207 self.assertIsInstance(mock_method.async_method, AsyncMock) 208 self.assertIsInstance(mock_metho [all...] |
H A D | testmagicmethods.py | 202 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(moc [all...] |
H A D | testsealable.py | 17 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/ |
H A D | test_headerregistry.py | 21 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( [all...] |
H A D | test_defect_handling.py | 62 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],
|
H A D | test_parser.py | 22 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/ |
H A D | test_loader.py | 102 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(suit [all...] |
/third_party/python/Lib/test/test_sqlite3/ |
H A D | test_factory.py | 51 self.assertIsInstance(con, factory) 62 self.assertIsInstance(con, Factory) 71 self.assertIsInstance(con, Factory) 83 self.assertIsInstance(cur, sqlite.Cursor) 85 self.assertIsInstance(cur, MyCursor) 87 self.assertIsInstance(cur, MyCursor) 105 self.assertIsInstance(row, dict) 118 self.assertIsInstance(row, list) 123 self.assertIsInstance(row, sqlite.Row) 247 self.assertIsInstance(ro [all...] |
/third_party/python/Lib/tkinter/test/test_ttk/ |
H A D | test_style.py | 33 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)
|