def METHOD_NAME(db, note, dummy_user):
    rev1 = note.create_revision(RenderMode.html, 'first', dummy_user)
    rev2 = note.create_revision(RenderMode.html, 'second', dummy_user)
    db.session.add(note)
    db.session.flush()
    note.revisions.remove(rev1)
    db.session.flush()
    assert set(note.revisions) == {rev2}
    assert EventNoteRevision.query.count() == 1