'Test that the ClientCommunicator generates good keys.'

def testEnrollingCommunicator(self):

    self.client_communicator = comms.ClientCommunicator()
    self.client_communicator.LoadServerCertificate(self.server_certificate, config.CONFIG['CA.certificate'])
    csr = self.client_communicator.GetCSR()
    cn = rdf_client.ClientURN.FromPublicKey(csr.GetPublicKey())
    self.assertEqual(cn, csr.GetCN())
