/external/llvm/bindings/python/llvm/tests/ |
test_object.py | 21 assert isinstance(section, Section) 22 assert isinstance(section.name, str) 23 assert isinstance(section.size, long) 24 assert isinstance(section.contents, str) 25 assert isinstance(section.address, long) 39 assert isinstance(symbol, Symbol) 40 assert isinstance(symbol.name, str) 41 assert isinstance(symbol.address, long) 42 assert isinstance(symbol.size, long) 54 assert isinstance(section, Section [all...] |
/external/chromium-trace/catapult/telemetry/telemetry/internal/util/ |
camel_case.py | 14 if isinstance(obj, basestring): 17 elif isinstance(obj, list): 20 elif isinstance(obj, dict): 23 if isinstance(v, list) or isinstance(v, dict):
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_typechecks.py | 10 """Implement isinstance(inst, cls).""" 45 self.assertEqual(isinstance(42, Integer), True) 46 self.assertEqual(isinstance(42, (Integer,)), True) 47 self.assertEqual(isinstance(3.14, Integer), False) 48 self.assertEqual(isinstance(3.14, (Integer,)), False) 51 self.assertEqual(isinstance(Integer(), Integer), True) 52 self.assertEqual(isinstance(Integer(), (Integer,)), True) 67 self.assertEqual(isinstance(SubInt(), Integer), True) 68 self.assertEqual(isinstance(SubInt(), (Integer,)), True) 69 self.assertEqual(isinstance(SubInt(), SubInt), True [all...] |
test___future__.py | 17 if obj is not None and isinstance(obj, __future__._Feature): 36 a(isinstance(t, tuple), "%s isn't tuple" % name) 39 a(isinstance(major, int), "%s major isn't int" % name) 40 a(isinstance(minor, int), "%s minor isn't int" % name) 41 a(isinstance(micro, int), "%s micro isn't int" % name) 42 a(isinstance(level, basestring), 46 a(isinstance(serial, int), "%s serial isn't int" % name) 58 a(isinstance(getattr(value, "compiler_flag"), int),
|
test_isinstance.py | 1 # Tests some corner cases with isinstance() and issubclass(). While these 17 # isinstance(inst, cls) where: 27 # gotten. In that case, isinstance() should return False. 40 self.assertEqual(False, isinstance(I(), C())) 60 self.assertRaises(RuntimeError, isinstance, I(), C()) 72 self.assertRaises(RuntimeError, isinstance, I(), C()) 84 self.assertRaises(TypeError, isinstance, I(), C()) 90 # issubclass() instead of isinstance() -- really PyObject_IsSubclass() 183 # Tests to ensure that isinstance and issubclass work on abstract 192 self.assertEqual(True, isinstance(Super(), Super) [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_typechecks.py | 10 """Implement isinstance(inst, cls).""" 45 self.assertEqual(isinstance(42, Integer), True) 46 self.assertEqual(isinstance(42, (Integer,)), True) 47 self.assertEqual(isinstance(3.14, Integer), False) 48 self.assertEqual(isinstance(3.14, (Integer,)), False) 51 self.assertEqual(isinstance(Integer(), Integer), True) 52 self.assertEqual(isinstance(Integer(), (Integer,)), True) 67 self.assertEqual(isinstance(SubInt(), Integer), True) 68 self.assertEqual(isinstance(SubInt(), (Integer,)), True) 69 self.assertEqual(isinstance(SubInt(), SubInt), True [all...] |
test___future__.py | 17 if obj is not None and isinstance(obj, __future__._Feature): 36 a(isinstance(t, tuple), "%s isn't tuple" % name) 39 a(isinstance(major, int), "%s major isn't int" % name) 40 a(isinstance(minor, int), "%s minor isn't int" % name) 41 a(isinstance(micro, int), "%s micro isn't int" % name) 42 a(isinstance(level, basestring), 46 a(isinstance(serial, int), "%s serial isn't int" % name) 58 a(isinstance(getattr(value, "compiler_flag"), int),
|
test_isinstance.py | 1 # Tests some corner cases with isinstance() and issubclass(). While these 17 # isinstance(inst, cls) where: 27 # gotten. In that case, isinstance() should return False. 40 self.assertEqual(False, isinstance(I(), C())) 60 self.assertRaises(RuntimeError, isinstance, I(), C()) 72 self.assertRaises(RuntimeError, isinstance, I(), C()) 84 self.assertRaises(TypeError, isinstance, I(), C()) 90 # issubclass() instead of isinstance() -- really PyObject_IsSubclass() 183 # Tests to ensure that isinstance and issubclass work on abstract 192 self.assertEqual(True, isinstance(Super(), Super) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_typechecks.py | 10 """Implement isinstance(inst, cls).""" 45 self.assertEqual(isinstance(42, Integer), True) 46 self.assertEqual(isinstance(42, (Integer,)), True) 47 self.assertEqual(isinstance(3.14, Integer), False) 48 self.assertEqual(isinstance(3.14, (Integer,)), False) 51 self.assertEqual(isinstance(Integer(), Integer), True) 52 self.assertEqual(isinstance(Integer(), (Integer,)), True) 67 self.assertEqual(isinstance(SubInt(), Integer), True) 68 self.assertEqual(isinstance(SubInt(), (Integer,)), True) 69 self.assertEqual(isinstance(SubInt(), SubInt), True [all...] |
test___future__.py | 17 if obj is not None and isinstance(obj, __future__._Feature): 36 a(isinstance(t, tuple), "%s isn't tuple" % name) 39 a(isinstance(major, int), "%s major isn't int" % name) 40 a(isinstance(minor, int), "%s minor isn't int" % name) 41 a(isinstance(micro, int), "%s micro isn't int" % name) 42 a(isinstance(level, basestring), 46 a(isinstance(serial, int), "%s serial isn't int" % name) 58 a(isinstance(getattr(value, "compiler_flag"), int),
|
test_isinstance.py | 1 # Tests some corner cases with isinstance() and issubclass(). While these 17 # isinstance(inst, cls) where: 27 # gotten. In that case, isinstance() should return False. 40 self.assertEqual(False, isinstance(I(), C())) 60 self.assertRaises(RuntimeError, isinstance, I(), C()) 72 self.assertRaises(RuntimeError, isinstance, I(), C()) 84 self.assertRaises(TypeError, isinstance, I(), C()) 90 # issubclass() instead of isinstance() -- really PyObject_IsSubclass() 183 # Tests to ensure that isinstance and issubclass work on abstract 192 self.assertEqual(True, isinstance(Super(), Super) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_typechecks.py | 10 """Implement isinstance(inst, cls).""" 45 self.assertEqual(isinstance(42, Integer), True) 46 self.assertEqual(isinstance(42, (Integer,)), True) 47 self.assertEqual(isinstance(3.14, Integer), False) 48 self.assertEqual(isinstance(3.14, (Integer,)), False) 51 self.assertEqual(isinstance(Integer(), Integer), True) 52 self.assertEqual(isinstance(Integer(), (Integer,)), True) 67 self.assertEqual(isinstance(SubInt(), Integer), True) 68 self.assertEqual(isinstance(SubInt(), (Integer,)), True) 69 self.assertEqual(isinstance(SubInt(), SubInt), True [all...] |
test___future__.py | 17 if obj is not None and isinstance(obj, __future__._Feature): 36 a(isinstance(t, tuple), "%s isn't tuple" % name) 39 a(isinstance(major, int), "%s major isn't int" % name) 40 a(isinstance(minor, int), "%s minor isn't int" % name) 41 a(isinstance(micro, int), "%s micro isn't int" % name) 42 a(isinstance(level, basestring), 46 a(isinstance(serial, int), "%s serial isn't int" % name) 58 a(isinstance(getattr(value, "compiler_flag"), int),
|
test_isinstance.py | 1 # Tests some corner cases with isinstance() and issubclass(). While these 17 # isinstance(inst, cls) where: 27 # gotten. In that case, isinstance() should return False. 40 self.assertEqual(False, isinstance(I(), C())) 60 self.assertRaises(RuntimeError, isinstance, I(), C()) 72 self.assertRaises(RuntimeError, isinstance, I(), C()) 84 self.assertRaises(TypeError, isinstance, I(), C()) 90 # issubclass() instead of isinstance() -- really PyObject_IsSubclass() 183 # Tests to ensure that isinstance and issubclass work on abstract 192 self.assertEqual(True, isinstance(Super(), Super) [all...] |
/external/v8/build/android/pylib/base/ |
test_run_factory.py | 25 if isinstance(env, local_device_environment.LocalDeviceEnvironment): 26 if isinstance(test_instance, gtest_test_instance.GtestTestInstance): 28 if isinstance(test_instance, 34 and isinstance(env, remote_device_environment.RemoteDeviceEnvironment)): 40 if isinstance(test_instance, gtest_test_instance.GtestTestInstance): 43 if isinstance(test_instance, 47 if isinstance(test_instance, uirobot_test_instance.UirobotTestInstance):
|
/external/testng/src/main/java/org/testng/internal/invokers/ |
InvokedMethodListenerSubtype.java | 26 private boolean isInstance(IInvokedMethodListener listenerInstance) { 27 return m_matchingInterface.isInstance(listenerInstance); 31 if (EXTENDED_LISTENER.isInstance(listenerInstance)) { 34 else if (SIMPLE_LISTENER.isInstance(listenerInstance)) {
|
/external/clang/bindings/python/tests/cindex/ |
test_index.py | 13 assert isinstance(index, Index) 15 assert isinstance(tu, TranslationUnit)
|
/external/chromium-trace/catapult/third_party/Paste/tests/test_exceptions/ |
test_httpexceptions.py | 20 assert isinstance(HTTPMovedPermanently("This is a message", 23 assert isinstance(HTTPUseProxy(headers=[('LOCATION','/bing')]) 25 assert isinstance(HTTPFound('/foobar'),HTTPRedirection) 84 assert isinstance(redirect,HTTPException) 85 assert isinstance(redirect,HTTPRedirection) 86 assert not isinstance(redirect,HTTPError) 88 assert isinstance(notfound,HTTPException) 89 assert isinstance(notfound,HTTPError) 90 assert isinstance(notfound,HTTPClientError) 91 assert not isinstance(notfound,HTTPServerError [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/lib2to3/fixes/ |
fix_isinstance.py | 4 """Fixer that cleans up a tuple argument to isinstance after the tokens 8 eg. isinstance(x, (int, long)) -> isinstance(x, (int, int)) 9 -> isinstance(x, int) 20 'isinstance'
|
/prebuilts/gdb/linux-x86/lib/python2.7/lib2to3/fixes/ |
fix_isinstance.py | 4 """Fixer that cleans up a tuple argument to isinstance after the tokens 8 eg. isinstance(x, (int, long)) -> isinstance(x, (int, int)) 9 -> isinstance(x, int) 20 'isinstance'
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/fixes/ |
fix_isinstance.py | 4 """Fixer that cleans up a tuple argument to isinstance after the tokens 8 eg. isinstance(x, (int, long)) -> isinstance(x, (int, int)) 9 -> isinstance(x, int) 20 'isinstance'
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/fixes/ |
fix_isinstance.py | 4 """Fixer that cleans up a tuple argument to isinstance after the tokens 8 eg. isinstance(x, (int, long)) -> isinstance(x, (int, int)) 9 -> isinstance(x, int) 20 'isinstance'
|
/external/chromium-trace/catapult/third_party/Paste/paste/util/ |
converters.py | 8 if isinstance(obj, (six.binary_type, six.text_type)): 20 if isinstance(obj, (six.binary_type, six.text_type)): 25 elif isinstance(obj, (list, tuple)):
|
/external/fonttools/Lib/fontTools/misc/ |
py23.py | 24 return c if isinstance(c, int) else ord(c) 36 if isinstance(self, bytes): 42 if not isinstance(s, str): 54 if not isinstance(blob, str): 72 if not isinstance(s, str): 77 if not isinstance(s, bytes):
|
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/treewalkers/ |
_base.py | 28 elif isinstance(s, text_type): 35 """Wrapper around isinstance(string_types) or is None""" 36 return string is None or isinstance(string, string_types) 50 assert namespace is None or isinstance(namespace, string_types), type(namespace) 51 assert isinstance(name, string_types), type(name) 52 assert all((namespace is None or isinstance(namespace, string_types)) and 53 isinstance(name, string_types) and 54 isinstance(value, string_types) 64 assert namespace is None or isinstance(namespace, string_types), type(namespace) 65 assert isinstance(name, string_types), type(name [all...] |