'Learner should not be eligible for one click purchase if:
- program has a course with more than one published course run'

def test_multiple_published_course_runs(self):

    course_run_1 = CourseRunFactory(key=str(ModuleStoreCourseFactory().id), status='published')
    course_run_2 = CourseRunFactory(key=str(ModuleStoreCourseFactory().id), status='published')
    course = CourseFactory(course_runs=[course_run_1, course_run_2])
    program = ProgramFactory(courses=[CourseFactory(course_runs=[CourseRunFactory(key=str(ModuleStoreCourseFactory().id), status='published')]), course, CourseFactory(course_runs=[CourseRunFactory(key=str(ModuleStoreCourseFactory().id), status='published')])], is_program_eligible_for_one_click_purchase=True)
    data = ProgramMarketingDataExtender(program, self.user).extend()
    self.assertFalse(data['is_learner_eligible_for_one_click_purchase'])
    course_run_2['status'] = 'unpublished'
    data = ProgramMarketingDataExtender(program, self.user).extend()
    self.assertTrue(data['is_learner_eligible_for_one_click_purchase'])
