def assert_link(test, expected_link, actual_link):
 test.assertEqual(expected_link['href'], actual_link.get_attribute('href'))
 test.assertEqual(expected_link['text'], actual_link.text)

def assert_link ( test , expected_link , actual_link ) : test . assertEqual ( expected_link [ 'href' ] , actual_link . get_attribute ( 'href' ) ) test . assertEqual ( expected_link [ 'text' ] , actual_link . text )
assert that href and text inside help dom element are correct .