def _set_up_course_run(self, with_policy=True, with_grading_policy=True):
<EOL>course_genus = Type(**COMPOSITION_GENUS_TYPES['<STR_LIT>'])<EOL>course_repo_record = Type(**REPOSITORY_RECORD_TYPES['<STR_LIT>'])<EOL>run_repo_record = Type(**REPOSITORY_RECORD_TYPES['<STR_LIT>'])<EOL>run_repo_genus = Type(**REPOSITORY_GENUS_TYPES['<STR_LIT>'])<EOL>lore_repo_record = Type(**REPOSITORY_RECORD_TYPES['<STR_LIT>'])<EOL>edx_composition_record = Type(**COMPOSITION_RECORD_TYPES['<STR_LIT>'])<EOL>form = self.rm.get_repository_form_for_create([lore_repo_record, course_repo_record])<EOL>form.display_name = '<STR_LIT>'<EOL>form.set_org('<STR_LIT>')<EOL>course_repo = self.rm.create_repository(form)<EOL>form = self.rm.get_repository_form_for_create([lore_repo_record, run_repo_record])<EOL>form.display_name = '<STR_LIT>'<EOL>form.set_genus_type(run_repo_genus)<EOL>if with_policy:<EOL><INDENT>form.set_policy('<STR_LIT>')<EOL><DEDENT>if with_grading_policy:<EOL><INDENT>form.set_grading_policy('<STR_LIT>')<EOL><DEDENT>run_repo = self.rm.create_repository(form)<EOL>self.rm.add_child_repository(course_repo.ident, run_repo.ident)<EOL>form = run_repo.get_composition_form_for_create([edx_composition_record])<EOL>form.display_name = '<STR_LIT>'<EOL>form.set_genus_type(Type(**COMPOSITION_GENUS_TYPES['<STR_LIT>']))<EOL>form.set_file_name('<STR_LIT>')<EOL>vertical = run_repo.create_composition(form)<EOL>form = run_repo.get_composition_form_for_create([edx_composition_record])<EOL>form.display_name = '<STR_LIT>'<EOL>form.set_genus_type(Type(**COMPOSITION_GENUS_TYPES['<STR_LIT>']))<EOL>form.set_file_name('<STR_LIT>')<EOL>form.set_children([vertical.ident])<EOL>sequential = run_repo.create_composition(form)<EOL>form = run_repo.get_composition_form_for_create([edx_composition_record])<EOL>form.display_name = '<STR_LIT>'<EOL>form.set_genus_type(Type(**COMPOSITION_GENUS_TYPES['<STR_LIT>']))<EOL>form.set_file_name('<STR_LIT>')<EOL>form.set_children([sequential.ident])<EOL>chapter = run_repo.create_composition(form)<EOL>form = run_repo.get_composition_form_for_create([edx_composition_record])<EOL>form.set_genus_type(course_genus)<EOL>form.set_file_name('<STR_LIT>')<EOL>form.set_sequestered(True)<EOL>form.set_children([chapter.ident])<EOL>course_composition = run_repo.create_composition(form)<EOL>return course_repo, run_repo<EOL>
Create a simple edX course with course, run, and a set of chapter -> sequential -> vertical
              compositions.