'``create_keypair`` does not generate a new key pair if one can
already be found in ``id_rsa_flocker`` and ``id_rsa_flocker.pub``.'

@if_conch
def test_key_not_regenerated(self):

    ssh_config = FilePath(self.mktemp())
    configurator = OpenSSHConfiguration(ssh_config_path=ssh_config, flocker_path=None)
    id_rsa = ssh_config.child('id_rsa_flocker')
    configurator.create_keypair()
    expected_key = Key.fromFile(id_rsa.path)
    configurator.create_keypair()
    self.assertEqual(expected_key, Key.fromFile(id_rsa.path))
