def METHOD_NAME(self):
    self.client = APIClient(enforce_csrf_checks=True)
    self.user = User.objects.create(
        username="someuser",
        email="user@test.com",
        password="secret_password",
    )
    EmailAddress.objects.create(
        user=self.user, email="user@test.com", primary=True, verified=True
    )
    self.invite_user = User.objects.create(
        username="otheruser",
        email="other@platform.com",
        password="other_secret_password",
    )
    self.participant_team = ParticipantTeam.objects.create(
        team_name="Participant Team", created_by=self.user
    )
    # user who create a challenge host team
    self.user2 = User.objects.create(
        username="someuser2", password="some_secret_password"
    )
    self.challenge_host_team = ChallengeHostTeam.objects.create(
        team_name="Some Test Challenge Host Team", created_by=self.user2
    )
    self.challenge_host2 = ChallengeHost.objects.create(
        user=self.user2,
        team_name=self.challenge_host_team,
        status=ChallengeHost.ACCEPTED,
        permissions=ChallengeHost.ADMIN,
    )
    self.challenge = Challenge.objects.create(
        title="Some Test Challenge",
        short_description="Short description for some test challenge",
        description="Description for some test challenge",
        terms_and_conditions="Terms and conditions for some test challenge",
        submission_guidelines="Submission guidelines for some test challenge",
        creator=self.challenge_host_team,
        published=False,
        enable_forum=True,
        anonymous_leaderboard=False,
        start_date=timezone.now() - timedelta(days=2),
        end_date=timezone.now() + timedelta(days=1),
    )
    self.client.force_authenticate(user=self.user)