text: from model.group import Group
  
  def test_add_group(app, db, json_groups):
      group = json_groups
      old_groups = db.get_group_list()
      app.group.create(group)
      new_groups = db.get_group_list()
      old_groups.append(group)
      assert sorted(old_groups, key=Group.id_or_max) == sorted(new_groups, key=Group.id_or_max)
  
  #def test_add_group_empty(app, group):
  #    old_groups = app.group.get_group_list()
  #    group = Group(name="", header="", footer="")
  #   app.group.create(group)
  #    new_groups = app.group.get_group_list()
  #    assert len(old_groups) + 1 == len(new_groups)
  #    old_groups.append(group)
  #    assert sorted(old_groups, key=Group.id_or_max) == sorted(new_groups, key=Group.id_or_max)