Lines Matching refs:client
29 self.client = gstorage_client.StorageClient(mock.MagicMock())
30 self.client._service = mock.MagicMock()
36 self.client._service.objects = mock.MagicMock(
39 self.client.Get(self.BUCKET, self.OBJECT)
52 self.client._service.objects = mock.MagicMock(
54 items = self.client.List(self.BUCKET, self.OBJECT)
55 self.client.ListWithMultiPages.assert_called_once_with(
75 self.client._service.objects = mock.MagicMock(
81 response = self.client.Upload(self.LOCAL_SRC, self.BUCKET, self.OBJECT,
95 self.assertRaises(errors.DriverError, self.client.Upload,
103 self.client._service.objects = mock.MagicMock(
106 self.client.Delete(self.BUCKET, self.OBJECT)
116 self.client._service.objects = mock.MagicMock(
119 deleted, failed, error_msgs = self.client.DeleteFiles(
137 self.client.GetUrl("fake_bucket", "fake-item-1"), "link1")
146 self.assertRaises(errors.ResourceNotFoundError, self.client.GetUrl,