'The created deployer got its node UUID and cluster UUID from the given
node certificate.'

def test_uuids_from_certificate(self):

    result = []
    def factory(hostname, node_uuid, cluster_uuid):
        result.append((node_uuid, cluster_uuid))
        return object()
    options = DatasetAgentOptions()
    options.parseOptions(['--agent-config', self.config.path])
    service_factory = self.service_factory(deployer_factory=factory)
    service_factory.get_service(MemoryCoreReactor(), options)
    self.assertEqual((self.ca_set.node.uuid, self.ca_set.node.cluster_uuid), result[0])
