def METHOD_NAME(
    tmp_path: Path, context: CfnginContext
) -> None:
    """Test interactive create existing file."""
    key_dir = tmp_path / "keys"
    key_dir.mkdir(exist_ok=True, parents=True)
    key_file = key_dir / f"{KEY_PAIR_NAME}.pem"
    key_file.touch()
    lines = ("create", str(key_dir))
    with mock_input(lines):
        result = ensure_keypair_exists(context, keypair=KEY_PAIR_NAME)
    assert result == {}