'Asserts that problems\' display names in both source and destination courses are same.'

def assert_problem_display_names(self, source_course_location, dest_course_location, is_published):

    source_course_lib_children = self.get_lib_content_block_children(source_course_location)
    dest_course_lib_children = self.get_lib_content_block_children(dest_course_location)
    self.assertEquals(len(source_course_lib_children), len(dest_course_lib_children))
    for (source_child_location, dest_child_location) in zip(source_course_lib_children, dest_course_lib_children):
        with self.store.branch_setting(branch_setting=ModuleStoreEnum.Branch.draft_preferred):
            self.assert_names(source_child_location, dest_child_location)
        if is_published:
            with self.store.branch_setting(branch_setting=ModuleStoreEnum.Branch.published_only):
                self.assert_names(source_child_location, dest_child_location)
