Lines Matching refs:client
30 self.client = gstorage_client.StorageClient(mock.MagicMock())
31 self.client._service = mock.MagicMock()
37 self.client._service.objects = mock.MagicMock(
40 self.client.Get(self.BUCKET, self.OBJECT)
53 self.client._service.objects = mock.MagicMock(
55 items = self.client.List(self.BUCKET, self.OBJECT)
56 self.client.ListWithMultiPages.assert_called_once_with(
76 self.client._service.objects = mock.MagicMock(
82 response = self.client.Upload(self.LOCAL_SRC, self.BUCKET, self.OBJECT,
96 self.assertRaises(errors.DriverError, self.client.Upload,
104 self.client._service.objects = mock.MagicMock(
107 self.client.Delete(self.BUCKET, self.OBJECT)
117 self.client._service.objects = mock.MagicMock(
120 deleted, failed, error_msgs = self.client.DeleteFiles(
138 self.client.GetUrl("fake_bucket", "fake-item-1"), "link1")
147 self.assertRaises(errors.ResourceNotFoundError, self.client.GetUrl,