@GlobalStorageAccountPreparer()
@StorageAccountPreparer(random_name_enabled=True, name_prefix='pyrmtstorage', parameter_name='rmt')
@AsyncStorageTestCase.await_prepared_test
async def test_copy_blob_async_private_blob_no_sas(self, resource_group, location, storage_account, storage_account_key, rmt, rmt_key):
    (await self._setup(storage_account.name, storage_account_key))
    (await self._setup_remote(rmt.name, rmt_key))
    (await self._create_remote_container())
    source_blob = (await self._create_remote_block_blob())
    target_blob_name = 'targetblob'
    target_blob = self.bsc.get_blob_client(self.container_name, target_blob_name)
    with self.assertRaises(ResourceNotFoundError):
        (await target_blob.start_copy_from_url(source_blob.url))
@GlobalStorageAccountPreparer()
@StorageAccountPreparer(random_name_enabled=True, name_prefix='pyrmtstorage', parameter_name='rmt')
@AsyncStorageTestCase.await_prepared_test
async def test_copy_blob_async_private_blob_no_sas(self, resource_group, location, storage_account, storage_account_key, rmt, rmt_key):
    (await self._setup(storage_account.name, storage_account_key))
    (await self._setup_remote(rmt.name, rmt_key))
    (await self._create_remote_container())
    source_blob = (await self._create_remote_block_blob())
    target_blob_name = 'targetblob'
    target_blob = self.bsc.get_blob_client(self.container_name, target_blob_name)
    with self.assertRaises(ResourceNotFoundError):
        (await target_blob.start_copy_from_url(source_blob.url))