def METHOD_NAME(storage, monkeypatch, capsys):
    """Test the insertion of an invalid experiment"""
    monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
    monkeypatch.setattr("getpass.getuser", get_user_corneau)
    returncode = orion.core.cli.main(
        [
            "insert",
            "-n",
            "dumb_experiment",
            "-c",
            "./orion_config_random.yaml",
            "./black_box.py",
            "-x=1",
        ]
    )
    assert returncode == 1
    captured = capsys.readouterr().err
    assert "Error: No experiment with given name 'dumb_experiment'"