Home
last modified time | relevance | path

Searched refs:mock_client (Results 1 – 5 of 5) sorted by relevance

/external/python/apitools/apitools/base/py/testing/
Dmock_test.py111 mock_client = mock.Client(fusiontables.FusiontablesV1)
112 self.assertFalse(isinstance(mock_client, fusiontables.FusiontablesV1))
113 attributes = set(mock_client.__dict__.keys())
114 mock_client = mock_client.Mock()
115 self.assertTrue(isinstance(mock_client, fusiontables.FusiontablesV1))
116 self.assertTrue(set(mock_client.__dict__.keys()) - attributes)
117 mock_client.Unmock()
118 self.assertFalse(isinstance(mock_client, fusiontables.FusiontablesV1))
119 self.assertEqual(attributes, set(mock_client.__dict__.keys()))
122 with mock.Client(fusiontables.FusiontablesV1) as mock_client:
[all …]
Dmock.py247 mock_client, service, real_service): argument
258 mock_client,
/external/tensorflow/tensorflow/python/distribute/cluster_resolver/
Dgce_cluster_resolver_test.py104 mock_client = mock.MagicMock()
105 mock_client.instanceGroups.return_value = mock_instance_groups
106 mock_client.instances.return_value = mock_instances
107 return mock_client
Dkubernetes_cluster_resolver_test.py29 mock_client = mock.MagicMock()
30 mock_client.list_pod_for_all_namespaces.side_effect = (
32 return mock_client
Dtpu_cluster_resolver_test.py129 mock_client = mock.MagicMock()
130 mock_client.projects.return_value = mock_project
132 return mock_client