'Verify deprecation warning
Arguments:
deprecated_blocks_present (bool): deprecated blocks remove text and
is list is visible if True else False
components_present (bool): components list shown if True else False
components_display_name_list (list): list of components display name
deprecated_modules_list (list): list of deprecated advance modules'

def _verify_deprecation_warning_info(self, deprecated_blocks_present, components_present, components_display_name_list=None, deprecated_modules_list=None):

    self.assertTrue(self.course_outline_page.deprecated_warning_visible)
    self.assertEqual(self.course_outline_page.warning_heading_text, self.HEADING_TEXT)
    self.assertEqual(self.course_outline_page.modules_remove_text_shown, deprecated_blocks_present)
    if deprecated_blocks_present:
        self.assertEqual(self.course_outline_page.modules_remove_text, self.ADVANCE_MODULES_REMOVE_TEXT)
        self.assertEqual(self.course_outline_page.deprecated_advance_modules, deprecated_modules_list)
    self.assertEqual(self.course_outline_page.components_visible, components_present)
    if components_present:
        self.assertEqual(self.course_outline_page.components_list_heading, self.COMPONENT_LIST_HEADING)
        self.assertItemsEqual(self.course_outline_page.components_display_names, components_display_name_list)
