'``CreateBlockDeviceDataset.run`` uses the ``IDeployer``\ \'s API object
to create a new volume, and logs that profile dropped during creation
if the backend does not provide ``IProfiledBlockDeviceAPI``.'

def test_run_create_profile(self):

    self.assertTrue(IProfiledBlockDeviceAPI.providedBy(self.api), u'This    test    assumes    the    API    provides    IProfiledBlockDeviceAPI.    If    the    API    now    does    not    provide    that    interface,    this    test    needs    a    bit    of    love.')
    dataset_id = uuid4()
    profile = u'gold'
    volume_info = self._create_blockdevice_dataset(dataset_id=dataset_id, maximum_size=LOOPBACK_MINIMUM_ALLOCATABLE_SIZE, metadata={u'clusterhq:flocker:profile': profile})
    actual_profile = self.api.dataset_profiles[volume_info.blockdevice_id]
    expected_volume = _blockdevicevolume_from_dataset_id(dataset_id=dataset_id, attached_to=None, size=LOOPBACK_MINIMUM_ALLOCATABLE_SIZE)
    self.assertEqual(dict(volume=expected_volume, profile=profile), dict(volume=volume_info, profile=actual_profile))
