def METHOD_NAME(single_with_trials):
    """Test that trials can be deleted by status"""
    trials = setup_storage()._fetch_trials({})
    n_broken = sum(trial.status == "broken" for trial in trials)
    assert n_broken > 0
    execute("db rm -f test_single_exp --status broken")
    assert len(setup_storage()._fetch_trials({})) == len(trials) - n_broken