'If the client has no certificate initially it should enroll.'

def testInitialEnrollment(self):

    with test_lib.ConfigOverrider({'Client.private_key': ''}):
        self.CreateNewClientObject()
        self.assertNotEqual(self.client_cn, self.client_communicator.communicator.common_name)
        self.client_cn = self.client_communicator.communicator.common_name
        status = self.client_communicator.RunOnce()
        self.assertEqual(status.code, 406)
        status = self.client_communicator.RunOnce()
        self.assertEqual(len(self.messages), 1)
        self.assertEqual(self.messages[0].session_id, ca_enroller.Enroler.well_known_session_id)
