'``configure_ssh`` writes the keypair to ``id_rsa_flocker`` and
``id_rsa_flocker.pub`` remotely.'

def test_flocker_keypair_written(self):

    configuring = deferToThread(self.configure_ssh, self.server.ip, self.server.port)
    def configured(ignored):
        expected = (self.ssh_config.child('id_rsa_flocker').getContent(), self.ssh_config.child('id_rsa_flocker.pub').getContent())
        actual = (self.flocker_config.child('id_rsa_flocker').getContent(), self.flocker_config.child('id_rsa_flocker.pub').getContent())
        self.assertEqual(expected, actual)
    configuring.addCallback(configured)
    return configuring
