Searched refs:mock_client (Results 1 – 5 of 5) sorted by relevance
111 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 …]
247 mock_client, service, real_service): argument258 mock_client,
104 mock_client = mock.MagicMock()105 mock_client.instanceGroups.return_value = mock_instance_groups106 mock_client.instances.return_value = mock_instances107 return mock_client
29 mock_client = mock.MagicMock()30 mock_client.list_pod_for_all_namespaces.side_effect = (32 return mock_client
129 mock_client = mock.MagicMock()130 mock_client.projects.return_value = mock_project132 return mock_client