def _setup_program_data_extender(self, extender_mock, course_overrides=None):
<EOL>dummy_program_extended = copy.deepcopy(self.dummy_program)<EOL>dummy_course_extended_1 = copy.deepcopy(self.demo_course_1)<EOL>dummy_course_extended_2 = copy.deepcopy(self.demo_course_2)<EOL>if course_overrides:<EOL><INDENT>dummy_course_extended_1.update(course_overrides)<EOL>dummy_course_extended_2.update(course_overrides)<EOL><DEDENT>dummy_course_extended_1['<STR_LIT>'][<NUM_LIT:0>].update({"<STR_LIT>": False, "<STR_LIT>": None})<EOL>dummy_course_extended_2['<STR_LIT>'][<NUM_LIT:0>].update({"<STR_LIT>": False, "<STR_LIT>": None})<EOL>dummy_program_extended.update({<EOL>"<STR_LIT>": [<EOL>dummy_course_extended_1,<EOL>dummy_course_extended_2,<EOL>],<EOL>"<STR_LIT>": {<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": <NUM_LIT:50>,<EOL>"<STR_LIT>": True,<EOL>"<STR_LIT>": <NUM_LIT>,<EOL>"<STR_LIT>": <NUM_LIT>,<EOL>},<EOL>"<STR_LIT>": <NUM_LIT>,<EOL>"<STR_LIT>": True,<EOL>"<STR_LIT>": [<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>],<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>})<EOL>extender_mock.return_value.extend.return_value = dummy_program_extended<EOL>return extender_mock<EOL>
Sets up the `ProgramDataExtender` mock, a utility from the edx-platform.