'Verify that library contents in destination and source courses are same after importing
the source course into destination course.'

@ddt.data(True, False)
def test_library_content_on_course_export_import(self, publish_item):

    self._setup_source_course_with_library_content(publish=publish_item)
    dest_course = CourseFactory.create(default_store=ModuleStoreEnum.Type.split)
    export_course_to_xml(self.store, contentstore(), self.source_course.location.course_key, self.export_dir, 'exported_source_course')
    import_course_from_xml(self.store, self.user.id, self.export_dir, ['exported_source_course'], static_content_store=contentstore(), target_id=dest_course.location.course_key, load_error_modules=False, raise_on_failure=True, create_if_not_present=True)
    self.assert_problem_display_names(self.source_course.location, dest_course.location, publish_item)
