'If a blockdevice associated to a dataset exists, but the dataset
is registered as owning a different blockdevice, the dataset is
reported as ``REGISTERED`` and associated to the registered
blockdevice.'

def test_registered_other_blockdevice(self):

    dataset_id = uuid4()
    self.api.create_volume(dataset_id=dataset_id, size=LOOPBACK_MINIMUM_ALLOCATABLE_SIZE)
    assert_discovered_state(self, self.deployer, persistent_state=PersistentState(blockdevice_ownership={dataset_id: u'no-such-volume'}), expected_discovered_datasets=[DiscoveredDataset(state=DatasetStates.REGISTERED, dataset_id=dataset_id, blockdevice_id=u'no-such-volume')])
