コード例 #1
0
 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))
コード例 #3
0
 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))