'If the configuration indicates a dataset with a primary manifestation
on the node has been deleted and the volume associated with that
dataset is mounted, ``BlockDeviceDeployer.calculate_changes`` returns
a ``UnmountBlockDevice`` state change operation.'

def test_deleted_dataset_volume_mounted(self):

    local_state = self.ONE_DATASET_STATE
    local_config = to_node(local_state).transform(['manifestations', unicode(self.DATASET_ID), 'dataset', 'deleted'], True)
    assert_calculated_changes(self, local_state, local_config, set(), in_parallel(changes=[UnmountBlockDevice(dataset_id=self.DATASET_ID, blockdevice_id=self.BLOCKDEVICE_ID)]), discovered_datasets=[DiscoveredDataset(state=DatasetStates.MOUNTED, dataset_id=self.DATASET_ID, blockdevice_id=self.BLOCKDEVICE_ID, maximum_size=int(REALISTIC_BLOCKDEVICE_SIZE.to_Byte()), device_path=FilePath('/dev/sda'), mount_point=FilePath('/flocker').child(bytes(self.DATASET_ID)))])
