'Export the course from a modulestore and then re-import the course.'

def _export_import_course_round_trip(self, modulestore, contentstore, source_course_key, export_dir):

    top_level_export_dir = 'exported_source_course'
    export_course_to_xml(modulestore, contentstore, source_course_key, export_dir, top_level_export_dir)
    import_course_from_xml(modulestore, 'test_user', export_dir, source_dirs=[top_level_export_dir], static_content_store=contentstore, target_id=source_course_key, create_if_not_present=True, raise_on_failure=True)
