<|file_name|>test_add_project.py<|end_file_name|><｜fim▁begin｜>from model.project import Project

def  <|fim_middle|>(app):
    project=Project(name="students_project", description="about Project")
    try:
        ind = app.project.get_project_list().index(project)
        app.project.delete_named_project(project)
    except ValueError:
        pass
    old_projects = app.project.get_project_list()
    app.project.create(project)
    new_projects = app.project.get_project_list()
    assert len(old_projects) + 1 == len(new_projects)
    old_projects.append(project)
    assert sorted(old_projects,key=Project.id_or_max) == sorted(new_projects,key=Project.id_or_max)



<｜fim▁end｜>
test_add_project