def METHOD_NAME(self):
    super().METHOD_NAME()
    self.user = UserFactory()
    self.orgs = [OrganizationFactory.create(name=name, site=self.site) for name in ["TestOrg1", "TestOrg2"]]
    self.course = CourseFactory.create(site=self.site)
    self.course_runs = CourseRunFactory.create_batch(2, course=self.course)
    self.program = ProgramFactory(
        title="TestProgram1",
        course_runs=self.course_runs,
        authoring_organizations=self.orgs,
        site=self.site,
    )
    self.course_certs = [
        CourseCertificateFactory.create(
            course_id=course_run.key,
            site=self.site,
        )
        for course_run in self.course_runs
    ]
    self.program_cert = ProgramCertificateFactory.create(
        program=self.program, program_uuid=self.program.uuid, site=self.site
    )
    self.course_credential_content_type = ContentType.objects.get(
        app_label="credentials", model="coursecertificate"
    )
    self.program_credential_content_type = ContentType.objects.get(
        app_label="credentials", model="programcertificate"
    )
    self.course_user_credentials = [
        UserCredentialFactory.create(
            username=self.user.username,
            credential_content_type=self.course_credential_content_type,
            credential=course_cert,
        )
        for course_cert in self.course_certs
    ]
    self.program_user_credential = UserCredentialFactory.create(
        username=self.user.username,
        credential_content_type=self.program_credential_content_type,
        credential=self.program_cert,
    )
    self.program2 = None
    self.program_cert2 = None
    self.program_user_credential2 = None