Skip to content
Permalink
Browse files

BaseSgmlLinkExtractor: Added unit test of a link with an inner tag

  • Loading branch information
bblanchon authored and dangra committed Feb 5, 2014
1 parent 7e4d627 commit c1cb418deec879afe2e4ec82f2520829c211df83
@@ -12,6 +12,7 @@
<a href='http://example.com/sample3.html' title='sample 3'>sample 3 text</a>
<a href='sample3.html'>sample 3 repetition</a>
<a href='http://www.google.com/something'></a>
<a href='http://example.com/innertag.html'><b>inner</b> tag</a>
</div>
</body>
</html>
@@ -123,6 +123,7 @@ def test_extraction(self):
Link(url='http://example.com/sample2.html', text=u'sample 2'),
Link(url='http://example.com/sample3.html', text=u'sample 3 text'),
Link(url='http://www.google.com/something', text=u''),
Link(url='http://example.com/innertag.html', text=u'inner tag'),
])

lx = SgmlLinkExtractor(allow=('sample', ))

0 comments on commit c1cb418

Please sign in to comment.