Searched refs:is_instance (Results 1 – 7 of 7) sorted by relevance
/third_party/python/Lib/unittest/test/testmock/ |
D | testcallable.py | 6 from unittest.test.testmock.support import is_instance, X, SomeClass 19 self.assertTrue(is_instance(mock, NonCallableMagicMock)) 20 self.assertFalse(is_instance(mock, CallableMixin)) 115 self.assertTrue(is_instance(instance, MagicMock))
|
D | testpatch.py | 11 from unittest.test.testmock.support import SomeClass, is_instance 93 self.assertTrue(is_instance(obj, MockClass)) 94 self.assertFalse(is_instance(obj, CallableMixin)) 263 self.assertTrue(is_instance(SomeClass.wibble, MagicMock)) 273 self.assertTrue(is_instance(SomeClass.class_attribute.wibble, 285 self.assertTrue(is_instance(SomeClass.wibble, MagicMock)) 295 self.assertTrue(is_instance(SomeClass.class_attribute.wibble, 309 self.assertTrue(is_instance(SomeClass.wibble, MagicMock)) 341 self.assertTrue(is_instance(MockSomeClass, MagicMock)) 1183 self.assertTrue(is_instance(m, NotAMock)) [all …]
|
D | support.py | 4 def is_instance(obj, klass): function
|
D | testwith.py | 4 from unittest.test.testmock.support import is_instance 35 self.assertTrue(is_instance(mock_something, MagicMock),
|
D | testmock.py | 8 from unittest.test.testmock.support import is_instance 65 self.assertTrue(is_instance(mock.return_value, Mock), 284 self.assertTrue(is_instance(mock.return_value, Mock), 492 self.assertTrue(is_instance(something, Mock), "attribute isn't a mock")
|
/third_party/jerryscript/docs/ |
D | 02.API-REFERENCE.md | 2366 jerry_value_t is_instance = jerry_binary_operation (JERRY_BIN_OP_INSTANCEOF, 2369 if (!jerry_value_is_error (is_instance) 2370 && jerry_get_boolean_value (is_instance) == true) 2379 jerry_release_value (is_instance);
|
/third_party/node/doc/api/ |
D | n-api.md | 5031 bool is_instance = false; 5032 status = napi_instanceof(env, es_this, MyClass_constructor, &is_instance); 5034 if (is_instance) {
|