def test_unmount_manifestation_when_leased_elsewhere(self):
        # Give it a state that says it has a manifestation of the dataset.
        node_state = self.ONE_DATASET_STATE
        leases = Leases().acquire(datetime.now(tz=UTC), self.DATASET_ID,
                                  uuid4())

        # Give it a configuration that says it shouldn't have that
        # manifestation.
        node_config = to_node(self.ONE_DATASET_STATE).transform(
            ["manifestations", unicode(self.DATASET_ID)], discard
        )

        assert_calculated_changes(
            self, node_state, node_config, set(),
            in_parallel(changes=[
                UnmountBlockDevice(dataset_id=self.DATASET_ID,
                                   blockdevice_id=self.BLOCKDEVICE_ID)
            ]), leases=leases,
        )
Convert a string to its hexadecimal representation.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/test/test_blockdevice.py/BlockDeviceDeployerUnmountCalculateChangesTests.test_unmount_manifestation_when_leased_elsewhere--crossover with--dataset/ETHPy150Open lsaffre/lino/lino/utils/__init__.py/str2hex