@pytest.mark.live_test_only
@GlobalStorageAccountPreparer()
@AsyncStorageTestCase.await_prepared_test
async def test_shared_read_access_blob_with_content_query_params(self, resource_group, location, storage_account, storage_account_key):
    (await self._setup(storage_account.name, storage_account_key))
    blob_name = (await self._create_block_blob())
    blob = self.bsc.get_blob_client(self.container_name, blob_name)
    token = generate_blob_sas(blob.account_name, blob.container_name, blob.blob_name, snapshot=blob.snapshot, account_key=blob.credential.account_key, permission=BlobSasPermissions(read=True), expiry=(datetime.utcnow() + timedelta(hours=1)), cache_control='no-cache', content_disposition='inline', content_encoding='utf-8', content_language='fr', content_type='text')
    sas_blob = BlobClient.from_blob_url(blob.url, credential=token)
    response = requests.get(sas_blob.url)
    response.raise_for_status()
    self.assertEqual(self.byte_data, response.content)
    self.assertEqual(response.headers['cache-control'], 'no-cache')
    self.assertEqual(response.headers['content-disposition'], 'inline')
    self.assertEqual(response.headers['content-encoding'], 'utf-8')
    self.assertEqual(response.headers['content-language'], 'fr')
    self.assertEqual(response.headers['content-type'], 'text')
@pytest.mark.live_test_only
@GlobalStorageAccountPreparer()
@AsyncStorageTestCase.await_prepared_test
async def test_shared_read_access_blob_with_content_query_params(self, resource_group, location, storage_account, storage_account_key):
    (await self._setup(storage_account.name, storage_account_key))
    blob_name = (await self._create_block_blob())
    blob = self.bsc.get_blob_client(self.container_name, blob_name)
    token = generate_blob_sas(blob.account_name, blob.container_name, blob.blob_name, snapshot=blob.snapshot, account_key=blob.credential.account_key, permission=BlobSasPermissions(read=True), expiry=(datetime.utcnow() + timedelta(hours=1)), cache_control='no-cache', content_disposition='inline', content_encoding='utf-8', content_language='fr', content_type='text')
    sas_blob = BlobClient.from_blob_url(blob.url, credential=token)
    response = requests.get(sas_blob.url)
    response.raise_for_status()
    self.assertEqual(self.byte_data, response.content)
    self.assertEqual(response.headers['cache-control'], 'no-cache')
    self.assertEqual(response.headers['content-disposition'], 'inline')
    self.assertEqual(response.headers['content-encoding'], 'utf-8')
    self.assertEqual(response.headers['content-language'], 'fr')
    self.assertEqual(response.headers['content-type'], 'text')