'When the SSH connection is established, the ``~/.ssh/authorized_keys``
file has the public part of the generated key pair appended to it.'

def test_authorized_keys(self):

    configuring = deferToThread(self.configure_ssh, self.server.ip, self.server.port)
    def configured(ignored):
        id_rsa_pub = self.ssh_config.child('id_rsa_flocker.pub')
        keys = self.server.home.descendant(['.ssh', 'authorized_keys'])
        self.assertEqual(goodlines(id_rsa_pub), goodlines(keys))
    configuring.addCallback(configured)
    return configuring
