def test_link_containments_are_kept(self):
     html = '<a>foo</a> bar'
     self.assertEquals('foo bar', remove_html_links(html))
示例#2
0
 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))
示例#4
0
 def test_removes_links_from_html(self):
     html = 'foo <a /> bar'
     self.assertEquals('foo  bar', remove_html_links(html))