/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 | 34 @test.mock.patch.object(logging, "warning", autospec=True) 49 @test.mock.patch.object(logging, "warning", autospec=True) 87 @test.mock.patch.object(logging, "warning", autospec=True) 101 @test.mock.patch.object(logging, "warning", autospec=True) 119 @test.mock.patch.object(logging, "warning", autospec=True) 136 @test.mock.patch.object(logging, "warning", autospec=True) 152 @test.mock.patch.object(logging, "warning", autospec=True) 167 @test.mock.patch.object(logging, "warning", autospec=True) 203 @test.mock.patch.object(logging, "warning", autospec=True) 243 @test.mock.patch.object(logging, "warning", autospec=True) [all …]
|
D | module_wrapper_test.py | 44 @test.mock.patch.object(logging, 'warning', autospec=True)
|
D | dispatch_test.py | 201 @test.mock.patch.object(tf_logging, "warning", autospec=True)
|
/external/python/apitools/apitools/base/py/ |
D | credentials_lib_test.py | 63 with mock.patch.object(util, 'DetectGce', autospec=True) as gce_detect: 68 autospec=True) as opener_mock: 97 @mock.patch.object(util, 'DetectGce', autospec=True) 108 autospec=True) as opener_mock: 138 autospec=True) as build_opener:
|
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: 497 autospec=True) as mock_request: 513 autospec=True) as mock_request: 532 autospec=True) as mock_request: 587 autospec=True) as mock_request: 641 autospec=True) as mock_execute:
|
D | transfer_test.py | 107 autospec=True) as make_request: 125 autospec=True) as make_request: 149 autospec=True) as make_request: 177 autospec=True) as make_request: 234 autospec=True) as make_request:
|
/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/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/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/mock/mock/ |
D | mock.py | 1251 spec_set, autospec, new_callable, kwargs argument 1258 if autospec is not None: 1271 self.autospec = autospec 1280 self.autospec, self.new_callable, self.kwargs 1376 autospec, kwargs = self.autospec, self.kwargs 1385 if autospec is False: 1386 autospec = None 1388 if spec is not None and autospec is not None: 1390 if ((spec is not None or autospec is not None) and 1396 if new is DEFAULT and autospec is None: [all …]
|
/external/python/cpython3/Lib/unittest/ |
D | mock.py | 1251 spec_set, autospec, new_callable, kwargs argument 1258 if autospec is not None: 1271 self.autospec = autospec 1280 self.autospec, self.new_callable, self.kwargs 1387 autospec, kwargs = self.autospec, self.kwargs 1396 if autospec is False: 1397 autospec = None 1399 if spec is not None and autospec is not None: 1401 if ((spec is not None or autospec is not None) and 1407 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/cpython3/Lib/unittest/test/testmock/ |
D | testpatch.py | 638 @patch('%s.SomeClass' % __name__, object(), autospec=True) 940 test = patch(foo_name, autospec=True)(function) 948 test = patch.object(module, 'Foo', autospec=True)(function) 957 @patch('%s.function' % __name__, autospec=True) 977 @patch('%s.function' % __name__, autospec=True, 988 with patch('%s.Foo.static_method' % __name__, autospec=True) as method: 994 with patch('%s.Foo.class_method' % __name__, autospec=True) as method: 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) [all …]
|
D | testwith.py | 133 with patch.object(c, 'f', autospec=True) as patch1: 134 with patch.object(c, 'f', autospec=True) as patch2:
|
/external/python/mock/mock/tests/ |
D | testpatch.py | 630 @patch('%s.SomeClass' % __name__, object(), autospec=True) 930 test = patch(foo_name, autospec=True)(function) 938 test = patch.object(module, 'Foo', autospec=True)(function) 947 @patch('%s.function' % __name__, autospec=True) 967 @patch('%s.function' % __name__, autospec=True, 978 with patch('%s.Foo.static_method' % __name__, autospec=True) as method: 984 with patch('%s.Foo.class_method' % __name__, autospec=True) as method: 990 patcher = patch('%s.function' % __name__, new=3, autospec=True) 994 patcher = patch.object(module, 'function', new=3, autospec=True) 1002 patcher = patch(foo_name, autospec=Bar) [all …]
|
D | testwith.py | 138 with patch.object(c, 'f', autospec=True) as patch1: 139 with patch.object(c, 'f', autospec=True) as patch2:
|
/external/tensorflow/tensorflow/python/tpu/client/ |
D | client_test.py | 721 time_mock = mock.patch.object(time, 'time', autospec=True).start() 723 sleep_mock = mock.patch.object(time, 'sleep', autospec=True).start() 751 time_mock = mock.patch.object(time, 'time', autospec=True).start() 753 sleep_mock = mock.patch.object(time, 'sleep', autospec=True).start()
|
/external/python/cpython3/Doc/library/ |
D | unittest.mock.rst | 171 Auto-speccing can be done through the *autospec* argument to patch, or the 1335 .. function:: patch(target, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new… 1366 A more powerful form of *spec* is *autospec*. If you set ``autospec=True`` 1376 Instead of ``autospec=True`` you can pass ``autospec=some_object`` to use an 1537 …target, attribute, new=DEFAULT, spec=None, create=False, spec_set=None, autospec=None, new_callabl… 1543 manager. Arguments *new*, *spec*, *create*, *spec_set*, *autospec* and 1686 .. function:: patch.multiple(target, spec=None, create=False, spec_set=None, autospec=None, new_cal… 1701 manager. The arguments *spec*, *spec_set*, *create*, *autospec* and 2337 :func:`create_autospec` and the *autospec* argument to :func:`patch`. 2390 If the mock was created with a *spec* (or *autospec* of course) then all the [all …]
|
/external/tensorflow/tensorflow/python/summary/writer/ |
D | writer_test.py | 475 writer_thread, "_ev_writer", autospec=True) as mock_writer: 496 writer_thread, "_ev_writer", autospec=True) as mock_writer: 508 writer_thread, "_ev_writer", autospec=True) as mock_writer: 524 writer_thread, "_ev_writer", autospec=True) as mock_writer:
|
/external/python/google-api-python-client/tests/ |
D | test__auth.py | 36 with mock.patch("google.auth.default", autospec=True) as default:
|
/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_squeezer.py | 319 @patch('idlelib.squeezer.Hovertip', autospec=Hovertip) 446 with patch('idlelib.squeezer.view_text', autospec=view_text)\
|
/external/python/oauth2client/tests/contrib/django_util/ |
D | test_decorators.py | 141 @mock.patch('oauth2client.contrib.django_util.UserOAuth2', autospec=True)
|