def METHOD_NAME(db, note, dummy_user):
    rev1 = note.create_revision(RenderMode.html, 'first', dummy_user)
    db.session.add(note)
    db.session.flush()
    assert rev1 == note.current_revision
    assert note.current_revision.html == note.html == 'first'
    assert set(note.revisions) == {rev1}
    rev2 = note.create_revision(RenderMode.html, 'second', dummy_user)
    db.session.flush()
    assert rev2 == note.current_revision
    assert note.current_revision.html == note.html == 'second'
    assert set(note.revisions) == {rev2, rev1}  # order_by is only applied when loading so just check the contents here