def test_link_containments_are_kept(self): html = '<a>foo</a> bar' self.assertEquals('foo bar', remove_html_links(html))
def test_removes_links_from_html(self): html = 'foo <a /> bar' self.assertEquals('foo bar', remove_html_links(html))