def assert_side_bar_help_link(test, page, href, help_text, as_list_item=False, index=(-1)):
 expected_link = {'href': href, 'text': help_text}
 actual_link = page.get_side_bar_help_element_and_click_help(as_list_item=as_list_item, index=index)
 assert_link(test, expected_link, actual_link)
 assert_opened_help_link_is_correct(test, href)

def assert_side_bar_help_link ( test , page , href , help_text , as_list_item = False , index = ( - 1 ) ) : expected_link = { 'href' : href , 'text' : help_text } actual_link = page . get_side_bar_help_element_and_click_help ( as_list_item = as_list_item , index = index ) assert_link ( test , expected_link , actual_link ) assert_opened_help_link_is_correct ( test , href )
asserts that help link in side bar is correct .