/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_abstract_numbers.py | 10 self.assertTrue(issubclass(int, Integral)) 11 self.assertTrue(issubclass(int, Complex)) 20 self.assertTrue(issubclass(long, Integral)) 21 self.assertTrue(issubclass(long, Complex)) 30 self.assertFalse(issubclass(float, Rational)) 31 self.assertTrue(issubclass(float, Real)) 38 self.assertFalse(issubclass(complex, Real)) 39 self.assertTrue(issubclass(complex, Complex))
|
test_typechecks.py | 15 """Implement issubclass(sub, cls).""" 39 self.assertEqual(issubclass(int, Integer), True) 40 self.assertEqual(issubclass(int, (Integer,)), True) 41 self.assertEqual(issubclass(float, Integer), False) 42 self.assertEqual(issubclass(float, (Integer,)), False) 55 self.assertEqual(issubclass(Integer, Integer), True) 56 self.assertEqual(issubclass(Integer, (Integer,)), True) 59 self.assertEqual(issubclass(SubInt, Integer), True) 60 self.assertEqual(issubclass(SubInt, (Integer,)), True) 61 self.assertEqual(issubclass(SubInt, SubInt), True [all...] |
test_abc.py | 70 self.assertFalse(issubclass(OldstyleClass, A)) 71 self.assertFalse(issubclass(A, OldstyleClass)) 90 self.assertFalse(issubclass(B, A)) 91 self.assertFalse(issubclass(B, (A,))) 95 self.assertTrue(issubclass(B, A)) 96 self.assertTrue(issubclass(B, (A,))) 102 self.assertTrue(issubclass(C, A)) 103 self.assertTrue(issubclass(C, (A,))) 125 self.assertTrue(issubclass(int, A)) 126 self.assertTrue(issubclass(int, (A,)) [all...] |
test_isinstance.py | 1 # Tests some corner cases with isinstance() and issubclass(). While these 90 # issubclass() instead of isinstance() -- really PyObject_IsSubclass() 101 self.assertRaises(RuntimeError, issubclass, C(), S()) 111 self.assertRaises(TypeError, issubclass, C(), S()) 125 self.assertRaises(RuntimeError, issubclass, B, C()) 135 self.assertRaises(TypeError, issubclass, B, C()) 183 # Tests to ensure that isinstance and issubclass work on abstract 214 self.assertEqual(True, issubclass(Super, Super)) 215 self.assertEqual(False, issubclass(Super, AbstractSuper)) 216 self.assertEqual(False, issubclass(Super, Child) [all...] |
test_collections.py | 240 self.assertTrue(issubclass(C, abc)) 245 self.assertTrue(issubclass(C, abc)) 250 self.assertFalse(issubclass(C, abc)) 254 self.assertFalse(issubclass(C, abc)) 294 self.assertFalse(issubclass(type(x), Hashable), repr(type(x))) 304 self.assertTrue(issubclass(type(x), Hashable), repr(type(x))) 312 self.assertFalse(issubclass(int, H)) 321 self.assertFalse(issubclass(type(x), Iterable), repr(type(x))) 331 self.assertTrue(issubclass(type(x), Iterable), repr(type(x))) 337 self.assertFalse(issubclass(str, I) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_abstract_numbers.py | 10 self.assertTrue(issubclass(int, Integral)) 11 self.assertTrue(issubclass(int, Complex)) 20 self.assertTrue(issubclass(long, Integral)) 21 self.assertTrue(issubclass(long, Complex)) 30 self.assertFalse(issubclass(float, Rational)) 31 self.assertTrue(issubclass(float, Real)) 38 self.assertFalse(issubclass(complex, Real)) 39 self.assertTrue(issubclass(complex, Complex))
|
test_typechecks.py | 15 """Implement issubclass(sub, cls).""" 39 self.assertEqual(issubclass(int, Integer), True) 40 self.assertEqual(issubclass(int, (Integer,)), True) 41 self.assertEqual(issubclass(float, Integer), False) 42 self.assertEqual(issubclass(float, (Integer,)), False) 55 self.assertEqual(issubclass(Integer, Integer), True) 56 self.assertEqual(issubclass(Integer, (Integer,)), True) 59 self.assertEqual(issubclass(SubInt, Integer), True) 60 self.assertEqual(issubclass(SubInt, (Integer,)), True) 61 self.assertEqual(issubclass(SubInt, SubInt), True [all...] |
test_abc.py | 70 self.assertFalse(issubclass(OldstyleClass, A)) 71 self.assertFalse(issubclass(A, OldstyleClass)) 90 self.assertFalse(issubclass(B, A)) 91 self.assertFalse(issubclass(B, (A,))) 95 self.assertTrue(issubclass(B, A)) 96 self.assertTrue(issubclass(B, (A,))) 102 self.assertTrue(issubclass(C, A)) 103 self.assertTrue(issubclass(C, (A,))) 125 self.assertTrue(issubclass(int, A)) 126 self.assertTrue(issubclass(int, (A,)) [all...] |
test_isinstance.py | 1 # Tests some corner cases with isinstance() and issubclass(). While these 90 # issubclass() instead of isinstance() -- really PyObject_IsSubclass() 101 self.assertRaises(RuntimeError, issubclass, C(), S()) 111 self.assertRaises(TypeError, issubclass, C(), S()) 125 self.assertRaises(RuntimeError, issubclass, B, C()) 135 self.assertRaises(TypeError, issubclass, B, C()) 183 # Tests to ensure that isinstance and issubclass work on abstract 214 self.assertEqual(True, issubclass(Super, Super)) 215 self.assertEqual(False, issubclass(Super, AbstractSuper)) 216 self.assertEqual(False, issubclass(Super, Child) [all...] |
test_collections.py | 240 self.assertTrue(issubclass(C, abc)) 245 self.assertTrue(issubclass(C, abc)) 250 self.assertFalse(issubclass(C, abc)) 254 self.assertFalse(issubclass(C, abc)) 294 self.assertFalse(issubclass(type(x), Hashable), repr(type(x))) 304 self.assertTrue(issubclass(type(x), Hashable), repr(type(x))) 312 self.assertFalse(issubclass(int, H)) 321 self.assertFalse(issubclass(type(x), Iterable), repr(type(x))) 331 self.assertTrue(issubclass(type(x), Iterable), repr(type(x))) 337 self.assertFalse(issubclass(str, I) [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/ |
webkitunittest.py | 46 self.assertTrue(issubclass(exception.__class__, expected_exception),
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
pprint.py | 150 if issubclass(typ, dict) and r is dict.__repr__: 179 if ((issubclass(typ, list) and r is list.__repr__) or 180 (issubclass(typ, tuple) and r is tuple.__repr__) or 181 (issubclass(typ, set) and r is set.__repr__) or 182 (issubclass(typ, frozenset) and r is frozenset.__repr__) 185 if issubclass(typ, list): 188 elif issubclass(typ, set): 196 elif issubclass(typ, frozenset): 224 if issubclass(typ, tuple) and length == 1: 272 if issubclass(typ, dict) and r is dict.__repr__ [all...] |
abc.py | 74 issubclass() function, but the registering ABC won't show up in 109 if issubclass(subclass, cls): 113 if issubclass(cls, subclass): 149 """Override for issubclass(subclass, cls).""" 175 if issubclass(subclass, rcls): 180 if issubclass(subclass, scls):
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
pprint.py | 150 if issubclass(typ, dict) and r is dict.__repr__: 179 if ((issubclass(typ, list) and r is list.__repr__) or 180 (issubclass(typ, tuple) and r is tuple.__repr__) or 181 (issubclass(typ, set) and r is set.__repr__) or 182 (issubclass(typ, frozenset) and r is frozenset.__repr__) 185 if issubclass(typ, list): 188 elif issubclass(typ, set): 196 elif issubclass(typ, frozenset): 224 if issubclass(typ, tuple) and length == 1: 272 if issubclass(typ, dict) and r is dict.__repr__ [all...] |
abc.py | 74 issubclass() function, but the registering ABC won't show up in 109 if issubclass(subclass, cls): 113 if issubclass(cls, subclass): 149 """Override for issubclass(subclass, cls).""" 175 if issubclass(subclass, rcls): 180 if issubclass(subclass, scls):
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
discover_unittest.py | 24 self.assertTrue(issubclass(c, Exception))
|
discover.py | 66 issubclass(obj, base_class)):
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_misc.py | 118 self.assertTrue(issubclass(db.DBError, Exception)) 121 self.assertTrue(issubclass(j, db.DBError), msg=i) 123 self.assertFalse(issubclass(j, KeyError), msg=i) 126 self.assertTrue(issubclass(db.DBKeyEmptyError, KeyError)) 127 self.assertTrue(issubclass(db.DBNotFoundError, KeyError))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_misc.py | 118 self.assertTrue(issubclass(db.DBError, Exception)) 121 self.assertTrue(issubclass(j, db.DBError), msg=i) 123 self.assertFalse(issubclass(j, KeyError), msg=i) 126 self.assertTrue(issubclass(db.DBKeyEmptyError, KeyError)) 127 self.assertTrue(issubclass(db.DBNotFoundError, KeyError))
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/ |
_endian.py | 22 if issubclass(typ, Structure):
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/ |
_endian.py | 22 if issubclass(typ, Structure):
|
/external/chromium_org/tools/telemetry/telemetry/ |
test.py | 26 assert issubclass(self.test, page_test.PageTest), (
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/ |
EasyDialogs.py | 666 if issubclass(tpwanted, Carbon.File.FSRef): 668 if issubclass(tpwanted, Carbon.File.FSSpec): 670 if issubclass(tpwanted, str): 672 if issubclass(tpwanted, unicode): 719 if issubclass(tpwanted, Carbon.File.FSRef): 721 if issubclass(tpwanted, Carbon.File.FSSpec): 723 if issubclass(tpwanted, (str, unicode)): 731 if issubclass(tpwanted, unicode): 776 if issubclass(tpwanted, Carbon.File.FSRef): 778 if issubclass(tpwanted, Carbon.File.FSSpec) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/sqlite3/test/ |
dbapi.py | 47 self.assertTrue(issubclass(sqlite.Warning, StandardError), 51 self.assertTrue(issubclass(sqlite.Error, StandardError), 55 self.assertTrue(issubclass(sqlite.InterfaceError, sqlite.Error), 59 self.assertTrue(issubclass(sqlite.DatabaseError, sqlite.Error), 63 self.assertTrue(issubclass(sqlite.DataError, sqlite.DatabaseError), 67 self.assertTrue(issubclass(sqlite.OperationalError, sqlite.DatabaseError), 71 self.assertTrue(issubclass(sqlite.IntegrityError, sqlite.DatabaseError), 75 self.assertTrue(issubclass(sqlite.InternalError, sqlite.DatabaseError), 79 self.assertTrue(issubclass(sqlite.ProgrammingError, sqlite.DatabaseError), 83 self.assertTrue(issubclass(sqlite.NotSupportedError [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/sqlite3/test/ |
dbapi.py | 47 self.assertTrue(issubclass(sqlite.Warning, StandardError), 51 self.assertTrue(issubclass(sqlite.Error, StandardError), 55 self.assertTrue(issubclass(sqlite.InterfaceError, sqlite.Error), 59 self.assertTrue(issubclass(sqlite.DatabaseError, sqlite.Error), 63 self.assertTrue(issubclass(sqlite.DataError, sqlite.DatabaseError), 67 self.assertTrue(issubclass(sqlite.OperationalError, sqlite.DatabaseError), 71 self.assertTrue(issubclass(sqlite.IntegrityError, sqlite.DatabaseError), 75 self.assertTrue(issubclass(sqlite.InternalError, sqlite.DatabaseError), 79 self.assertTrue(issubclass(sqlite.ProgrammingError, sqlite.DatabaseError), 83 self.assertTrue(issubclass(sqlite.NotSupportedError [all...] |