'DRY helper for creating test program data.'

def create_program(self):

    course_run = CourseRunFactory(key=self.course_id)
    course = CourseFactory(course_runs=[course_run])
    program_type = ProgramTypeFactory()
    return ProgramFactory(courses=[course], type=program_type['name'])
