'``create_keypair`` generates a new key pair and writes it locally to
``id_rsa_flocker`` and ``id_rsa_flocker.pub``.'

@if_conch
def test_key_generated(self):

    ssh_config = FilePath(self.mktemp())
    configurator = OpenSSHConfiguration(ssh_config_path=ssh_config, flocker_path=None)
    configurator.create_keypair()
    id_rsa = ssh_config.child('id_rsa_flocker')
    id_rsa_pub = ssh_config.child('id_rsa_flocker.pub')
    key = Key.fromFile(id_rsa.path)
    self.assertEqual(key.public().toString(type='OPENSSH', extra='test    comment').split(None, 2)[:2], id_rsa_pub.getContent().split(None, 2)[:2])
