@GlobalStorageAccountPreparer()
@AsyncStorageTestCase.await_prepared_test
async def test_delete_blob_snapshot(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)
    snap = (await blob.create_snapshot())
    snapshot = self.bsc.get_blob_client(self.container_name, blob_name, snapshot=snap)
    (await snapshot.delete_blob())
    container = self.bsc.get_container_client(self.container_name)
    blobs = []
    async for b in container.list_blobs(include='snapshots'):
        blobs.append(b)
    self.assertEqual(len(blobs), 1)
    self.assertEqual(blobs[0].name, blob_name)
    self.assertIsNone(blobs[0].snapshot)
@GlobalStorageAccountPreparer()
@AsyncStorageTestCase.await_prepared_test
async def test_delete_blob_snapshot(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)
    snap = (await blob.create_snapshot())
    snapshot = self.bsc.get_blob_client(self.container_name, blob_name, snapshot=snap)
    (await snapshot.delete_blob())
    container = self.bsc.get_container_client(self.container_name)
    blobs = []
    async for b in container.list_blobs(include='snapshots'):
        blobs.append(b)
    self.assertEqual(len(blobs), 1)
    self.assertEqual(blobs[0].name, blob_name)
    self.assertIsNone(blobs[0].snapshot)