Lines Matching refs:client
27 self.client = gstorage_client.StorageClient(mock.MagicMock())
28 self.client._service = mock.MagicMock()
34 self.client._service.objects = mock.MagicMock(
37 self.client.Get(self.BUCKET, self.OBJECT)
50 self.client._service.objects = mock.MagicMock(
52 items = self.client.List(self.BUCKET, self.OBJECT)
53 self.client.ListWithMultiPages.assert_called_once_with(
73 self.client._service.objects = mock.MagicMock(
79 response = self.client.Upload(self.LOCAL_SRC, self.BUCKET, self.OBJECT,
93 self.assertRaises(errors.DriverError, self.client.Upload,
101 self.client._service.objects = mock.MagicMock(
104 self.client.Delete(self.BUCKET, self.OBJECT)
114 self.client._service.objects = mock.MagicMock(
117 deleted, failed, error_msgs = self.client.DeleteFiles(self.BUCKET,
134 self.client.GetUrl("fake_bucket", "fake-item-1"), "link1")
143 self.assertRaises(errors.ResourceNotFoundError, self.client.GetUrl,