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)
    assert note.current_revision == rev2
    db.session.flush()
    note.current_revision = rev1
    db.session.flush()
    assert note.current_revision.html == note.html == 'first'
    assert set(note.revisions) == {rev2, rev1}