'When there is a a dataset in the ``MOUNTED`` state,
it is reported as a manifest dataset.'

def test_mounted_dataset(self):

    dataset_id = uuid4()
    mount_point = FilePath('/mount/point')
    device_path = FilePath('/dev/xvdf')
    local_state = BlockDeviceDeployerLocalState(node_uuid=self.node_uuid, hostname=self.hostname, datasets={dataset_id: DiscoveredDataset(state=DatasetStates.MOUNTED, dataset_id=dataset_id, blockdevice_id=ARBITRARY_BLOCKDEVICE_ID, maximum_size=LOOPBACK_MINIMUM_ALLOCATABLE_SIZE, device_path=device_path, mount_point=mount_point)})
    expected_changes = (NodeState(uuid=self.node_uuid, hostname=self.hostname, manifestations={unicode(dataset_id): Manifestation(dataset=Dataset(dataset_id=dataset_id, maximum_size=LOOPBACK_MINIMUM_ALLOCATABLE_SIZE), primary=True)}, paths={unicode(dataset_id): mount_point}, devices={dataset_id: device_path}, applications=None), NonManifestDatasets())
    self.assertEqual(local_state.shared_state_changes(), expected_changes)
