def my_team(group): a_team = models.Team(name='A-Team', slug='ATM', group=group) with username_on_model(models.Team, 'initial'): a_team.save() return a_team
def my_other_team(my_other_group): a_team = models.Team(name='B-Team', slug='BTM', group=my_other_group) with username_on_model(models.Team, 'initial'): a_team.save() return a_team
def not_my_team(not_my_group): z_team = models.Team(name='Z-Team', slug='ZTM', group=not_my_group) with username_on_model(models.Team, 'initial'): z_team.save() return z_team
def my_team(group, not_my_team): team = models.Team(name="A-Team", slug="ATM", group=group) with username_on_model(models.Team, "initial"): team.save() return team
def not_my_team(not_my_group): team = models.Team(name="Z-Team", slug="ZTM", group=not_my_group) with username_on_model(models.Team, "initial"): team.save() return team
def deactivated_team(my_group): team = models.Team(name="Deactivated-Team", slug="DTM", group=my_group) team.deleted = True with username_on_model(models.Team, "deactivator"): team.save() return team
def my_other_team(my_other_group): team = models.Team(name="B-Team", slug="BTM", group=my_other_group) with username_on_model(models.Team, "initial"): team.save() return team