/external/python/apitools/apitools/scripts/ |
D | oauth2l_test.py | 84 autospec=True) as mock_credentials: 92 autospec=True) as mock_credentials: 101 autospec=True) as mock_credentials: 110 autospec=True) as mock_credentials: 124 autospec=True) as mock_credentials: 138 autospec=True) as mock_credentials: 173 autospec=True) as mock_fetch: 176 autospec=True) as mock_get_scopes: 190 autospec=True) as mock_fetch: 193 autospec=True) as mock_validate: [all …]
|
/external/autotest/site_utils/ |
D | deploy_server_local_unittest.py | 89 @mock.patch('subprocess.check_output', autospec=True) 109 @mock.patch('subprocess.check_output', autospec=True) 132 @mock.patch('subprocess.check_output', autospec=True) 142 @mock.patch('subprocess.check_output', autospec=True) 160 @mock.patch('subprocess.check_output', autospec=True) 190 @mock.patch('subprocess.check_call', autospec=True) 201 @mock.patch('subprocess.check_output', autospec=True) 211 @mock.patch.object(dsl, 'restart_service', autospec=True) 219 with mock.patch.object(dsl, 'service_status', autospec=True, 250 @mock.patch('subprocess.check_output', autospec=True) [all …]
|
/external/python/oauth2client/tests/contrib/ |
D | test_keyring_storage.py | 66 autospec=True) as get_password: 84 autospec=True) as set_password: 100 autospec=True) as set_password: 107 autospec=True) as get_password: 116 autospec=True) as get_password: 140 autospec=True) as get_password: 143 autospec=True) as set_password: 155 autospec=True) as get_password:
|
D | test_appengine.py | 184 autospec=True) as get_access_token: 678 autospec=True) as parse_state_value: 747 autospec=True) as parse_state_value: 794 autospec=True) as parse_state_value: 996 return_value=None, autospec=True):
|
/external/tensorflow/tensorflow/python/util/ |
D | deprecation_test.py | 31 @test.mock.patch.object(logging, "warning", autospec=True) 47 @test.mock.patch.object(logging, "warning", autospec=True) 86 @test.mock.patch.object(logging, "warning", autospec=True) 100 @test.mock.patch.object(logging, "warning", autospec=True) 136 @test.mock.patch.object(logging, "warning", autospec=True) 177 @test.mock.patch.object(logging, "warning", autospec=True) 218 @test.mock.patch.object(logging, "warning", autospec=True) 244 @test.mock.patch.object(logging, "warning", autospec=True) 270 @test.mock.patch.object(logging, "warning", autospec=True) 315 @test.mock.patch.object(logging, "warning", autospec=True) [all …]
|
/external/autotest/frontend/afe/ |
D | rpc_utils_unittest.py | 106 @mock.patch.object(rpc_utils, 'bucket_hosts_by_shard', autospec=True) 115 @mock.patch.object(rpc_utils, 'bucket_hosts_by_shard', autospec=True) 123 @mock.patch.object(rpc_utils, 'bucket_hosts_by_shard', autospec=True) 131 @mock.patch.object(rpc_utils, 'bucket_hosts_by_shard', autospec=True)
|
/external/autotest/venv/lucifer/ |
D | autotest_unittest.py | 48 with mock.patch('importlib.import_module', autospec=True) \ 67 with mock.patch('importlib.import_module', autospec=True) \ 79 with mock.patch('importlib.import_module', autospec=True) \
|
D | loglib_unittest.py | 23 autospec=True) as dictConfig: 33 autospec=True) as configure:
|
/external/tensorflow/tensorflow/python/debug/cli/ |
D | evaluator_test.py | 154 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True): 171 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True): 185 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True): 207 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True): 227 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True): 241 dump, "get_tensors", side_effect=fake_get_tensors, autospec=True):
|
/external/python/apitools/apitools/base/py/ |
D | batch_test.py | 115 autospec=True) as mock_request: 174 autospec=True) as mock_request: 256 autospec=True) as mock_request: 285 autospec=True) as mock_request: 479 autospec=True) as mock_request: 495 autospec=True) as mock_request: 514 autospec=True) as mock_request: 580 autospec=True) as mock_execute:
|
D | credentials_lib_test.py | 45 autospec=True) as opener_mock: 47 autospec=True) as mock_detect: 73 autospec=True) as build_opener:
|
D | transfer_test.py | 106 autospec=True) as make_request: 134 autospec=True) as make_request: 191 autospec=True) as make_request:
|
/external/pdfium/third_party/pymock/ |
D | mock.py | 1118 spec_set, autospec, new_callable, kwargs argument 1125 if autospec is not None: 1138 self.autospec = autospec 1147 self.autospec, self.new_callable, self.kwargs 1250 autospec, kwargs = self.autospec, self.kwargs 1259 if autospec is False: 1260 autospec = None 1262 if spec is not None and autospec is not None: 1264 if ((spec is not None or autospec is not None) and 1270 if new is DEFAULT and autospec is None: [all …]
|
/external/python/cpython2/Lib/test/ |
D | _mock_backport.py | 1071 spec_set, autospec, new_callable, kwargs argument 1078 if autospec is not None: 1091 self.autospec = autospec 1100 self.autospec, self.new_callable, self.kwargs 1196 autospec, kwargs = self.autospec, self.kwargs 1205 if autospec is False: 1206 autospec = None 1208 if spec is not None and autospec is not None: 1210 if ((spec is not None or autospec is not None) and 1216 if new is DEFAULT and autospec is None: [all …]
|
/external/python/cpython3/Lib/unittest/ |
D | mock.py | 1125 spec_set, autospec, new_callable, kwargs argument 1132 if autospec is not None: 1145 self.autospec = autospec 1154 self.autospec, self.new_callable, self.kwargs 1250 autospec, kwargs = self.autospec, self.kwargs 1259 if autospec is False: 1260 autospec = None 1262 if spec is not None and autospec is not None: 1264 if ((spec is not None or autospec is not None) and 1270 if new is DEFAULT and autospec is None: [all …]
|
/external/python/mock/mock/ |
D | mock.py | 1226 spec_set, autospec, new_callable, kwargs argument 1233 if autospec is not None: 1246 self.autospec = autospec 1255 self.autospec, self.new_callable, self.kwargs 1351 autospec, kwargs = self.autospec, self.kwargs 1360 if autospec is False: 1361 autospec = None 1363 if spec is not None and autospec is not None: 1365 if ((spec is not None or autospec is not None) and 1371 if new is DEFAULT and autospec is None: [all …]
|
/external/autotest/server/hosts/ |
D | file_store_unittest.py | 122 @mock.patch('chromite.lib.locking.FileLock', autospec=True) 142 @mock.patch('chromite.lib.locking.FileLock', autospec=True) 167 @mock.patch('chromite.lib.locking.FileLock', autospec=True)
|
/external/autotest/client/common_lib/cros/ |
D | retry_unittest.py | 34 patcher = mock.patch('time.sleep', autospec=True) 38 patcher = mock.patch('time.time', autospec=True)
|
/external/python/mock/mock/tests/ |
D | testpatch.py | 638 @patch('%s.SomeClass' % __name__, object(), autospec=True) 958 test = patch(foo_name, autospec=True)(function) 966 test = patch.object(module, 'Foo', autospec=True)(function) 975 @patch('%s.function' % __name__, autospec=True) 989 @patch('%s.function' % __name__, autospec=True, 1000 patcher = patch('%s.function' % __name__, new=3, autospec=True) 1004 patcher = patch.object(module, 'function', new=3, autospec=True) 1012 patcher = patch(foo_name, autospec=Bar) 1023 patcher = patch(foo_name, autospec=True) 1033 patcher = patch(foo_name, autospec=True) [all …]
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testpatch.py | 634 @patch('%s.SomeClass' % __name__, object(), autospec=True) 971 test = patch(foo_name, autospec=True)(function) 979 test = patch.object(module, 'Foo', autospec=True)(function) 988 @patch('%s.function' % __name__, autospec=True) 1008 @patch('%s.function' % __name__, autospec=True, 1019 patcher = patch('%s.function' % __name__, new=3, autospec=True) 1023 patcher = patch.object(module, 'function', new=3, autospec=True) 1031 patcher = patch(foo_name, autospec=Bar) 1042 patcher = patch(foo_name, autospec=True) 1052 patcher = patch(foo_name, autospec=True) [all …]
|
D | testwith.py | 136 with patch.object(c, 'f', autospec=True) as patch1: 137 with patch.object(c, 'f', autospec=True) as patch2:
|
/external/tensorflow/tensorflow/contrib/framework/python/framework/ |
D | experimental_test.py | 29 @test.mock.patch.object(logging, "warning", autospec=True)
|
/external/python/cpython3/Doc/library/ |
D | unittest.mock.rst | 155 Auto-speccing can be done through the *autospec* argument to patch, or the 1058 .. function:: patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new… 1087 A more powerful form of *spec* is *autospec*. If you set ``autospec=True`` 1097 Instead of ``autospec=True`` you can pass ``autospec=some_object`` to use an 1253 …target, attribute, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callabl… 1259 manager. Arguments *new*, *spec*, *create*, *spec_set*, *autospec* and 1372 .. function:: patch.multiple(target, spec=None, create=False, spec_set=None, autospec=None, new_cal… 1387 manager. The arguments *spec*, *spec_set*, *create*, *autospec* and 2013 :func:`create_autospec` and the *autospec* argument to :func:`patch`. 2060 If the mock was created with a *spec* (or *autospec* of course) then all the [all …]
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/ |
D | monitors_test.py | 319 @test.mock.patch.object(estimators, 'Estimator', autospec=True) 338 @test.mock.patch.object(estimators, 'Estimator', autospec=True) 358 @test.mock.patch.object(estimators, 'Estimator', autospec=True) 377 @test.mock.patch.object(estimators, 'Estimator', autospec=True)
|
/external/python/google-api-python-client/tests/ |
D | test__auth.py | 36 with mock.patch('google.auth.default', autospec=True) as default:
|