File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -694,7 +694,6 @@ def test_configure_base_url(self):
694694 sel = self .sscls (text = u'nothing' , base_url = 'http://example.com' )
695695 self .assertEquals (u'http://example.com' , sel .root .base )
696696
697-
698697 def test_extending_selector (self ):
699698 class MySelectorList (Selector .selectorlist_cls ):
700699 pass
@@ -708,6 +707,11 @@ class MySelector(Selector):
708707 self .assertIsInstance (sel .css ('div' ), MySelectorList )
709708 self .assertIsInstance (sel .css ('div' )[0 ], MySelector )
710709
710+ def test_replacement_null_char_from_body (self ):
711+ text = u'<html>\x00 <body><p>Grainy</p></body></html>'
712+ self .assertEqual (u'<html><body><p>Grainy</p></body></html>' ,
713+ self .sscls (text ).extract ())
714+
711715class ExsltTestCase (unittest .TestCase ):
712716
713717 sscls = Selector
You can’t perform that action at this time.
0 commit comments