def test__formatLinkReferenceDefitions_oneLink(self): text = ["[Google]: http://google.com"] expected = text actual = link_utils._format_links(text) self.assertEqual(actual, expected)
def test__formatLinks(self): text = ["[Google]: http://google.com", "[IGN]: http://ign.com"] expected = ["[Google]: http://google.com", "[IGN]: http://ign.com"] actual = link_utils._format_links(text) self.assertEqual(actual, expected)