def METHOD_NAME(app):
    app.select_pri_criterion("Folder")
    app.pdialog.criteria_list.select([1])  # folder2
    app.pdialog.add_selected()
    app.pdialog.perform_reprioritization()
    eq_(app.rtable[0].data["name"], "foo2.ext2")