@GlobalStorageAccountPreparer()
@AsyncStorageTestCase.await_prepared_test
async def test_get_blob_properties_with_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())
    container = self.bsc.get_container_client(self.container_name)
    blob = self.bsc.get_blob_client(self.container_name, blob_name)
    res = (await blob.create_snapshot())
    blobs = []
    async for b in container.list_blobs(include='snapshots'):
        blobs.append(b)
    self.assertEqual(len(blobs), 2)
    snapshot = self.bsc.get_blob_client(self.container_name, blob_name, snapshot=res)
    props = (await snapshot.get_blob_properties())
    self.assertIsNotNone(blob)
    self.assertEqual(props.blob_type, BlobType.BlockBlob)
    self.assertEqual(props.size, len(self.byte_data))
@GlobalStorageAccountPreparer()
@AsyncStorageTestCase.await_prepared_test
async def test_get_blob_properties_with_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())
    container = self.bsc.get_container_client(self.container_name)
    blob = self.bsc.get_blob_client(self.container_name, blob_name)
    res = (await blob.create_snapshot())
    blobs = []
    async for b in container.list_blobs(include='snapshots'):
        blobs.append(b)
    self.assertEqual(len(blobs), 2)
    snapshot = self.bsc.get_blob_client(self.container_name, blob_name, snapshot=res)
    props = (await snapshot.get_blob_properties())
    self.assertIsNotNone(blob)
    self.assertEqual(props.blob_type, BlobType.BlockBlob)
    self.assertEqual(props.size, len(self.byte_data))