def METHOD_NAME(tmp_path: Path, context: CfnginContext) -> None:
    """Test interactive create bad dir."""
    key_dir = tmp_path / "missing"
    lines = ("create", str(key_dir))
    with mock_input(lines):
        result = ensure_keypair_exists(context, keypair=KEY_PAIR_NAME)
    assert result == {}