@pytest.mark.live_test_only
@GlobalStorageAccountPreparer()
@AsyncStorageTestCase.await_prepared_test
async def test_no_server_encryption(self, resource_group, location, storage_account, storage_account_key):
    pytest.skip('Aiohttp headers dict (CIMultiDictProxy) is immutable.')
    (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)

    def callback(response):
        response.http_response.headers['x-ms-server-encrypted'] = 'false'
    props = (await blob.get_blob_properties(raw_response_hook=callback))
    self.assertFalse(props.server_encrypted)
@pytest.mark.live_test_only
@GlobalStorageAccountPreparer()
@AsyncStorageTestCase.await_prepared_test
async def test_no_server_encryption(self, resource_group, location, storage_account, storage_account_key):
    pytest.skip('Aiohttp headers dict (CIMultiDictProxy) is immutable.')
    (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)

    def callback(response):
        response.http_response.headers['x-ms-server-encrypted'] = 'false'
    props = (await blob.get_blob_properties(raw_response_hook=callback))
    self.assertFalse(props.server_encrypted)