def METHOD_NAME(self):
    self.customizer_configuration = Configuration.objects.create(disable_all_submissions=False)
    self.organizer = User.objects.create_user(username="organizer", password="pass")
    self.participant_user = User.objects.create_user(username="participant", password="pass")
    self.other_participant_user = User.objects.create_user(username="other_participant", password="pass")
    self.other_user = User.objects.create_user(username="other", password="pass")
    self.competition = Competition.objects.create(creator=self.organizer, modified_by=self.organizer, published=True)
    self.participant_1 = CompetitionParticipant.objects.create(
        user=self.participant_user,
        competition=self.competition,
        status=ParticipantStatus.objects.get_or_create(name='approved', codename=ParticipantStatus.APPROVED)[0]
    )
    self.participant_2 = CompetitionParticipant.objects.create(
        user=self.other_participant_user,
        competition=self.competition,
        status=ParticipantStatus.objects.get_or_create(name='approved', codename=ParticipantStatus.APPROVED)[0]
    )
    self.phase_1 = CompetitionPhase.objects.create(
        competition=self.competition,
        phasenumber=1,
        start_date=datetime.datetime.now() - datetime.timedelta(days=30),
    )
    self.submission_finished_status = CompetitionSubmissionStatus.objects.create(name="finished", codename="finished")
    CompetitionSubmissionStatus.objects.create(name="failed", codename="failed")
    self.submission_1 = CompetitionSubmission.objects.create(
        participant=self.participant_1,
        phase=self.phase_1,
        status=self.submission_finished_status,
        is_public=False,
        submitted_at=datetime.datetime.now() - datetime.timedelta(days=29),
        stdout_file=SimpleUploadedFile(name="test.txt", content="test std out".encode('utf-8'))
    )
    self.url = reverse("my_competition_output", kwargs={"submission_id": self.submission_1.pk,
                                                        "filetype": "stdout.txt"})
    self.client = Client()
    self.expected_return_value = 302 if settings.USE_AWS else 200