diff --git a/scrapy/trunk/scrapy/tests/test_xpath.py b/scrapy/trunk/scrapy/tests/test_xpath.py index 481ea4293..e58aad374 100644 --- a/scrapy/trunk/scrapy/tests/test_xpath.py +++ b/scrapy/trunk/scrapy/tests/test_xpath.py @@ -5,8 +5,8 @@ import unittest import libxml2 from scrapy.http import Response -from scrapy.xpath.selector import XPathSelector -from scrapy.xpath.constructors import xmlDoc_from_xml +from scrapy.xpath.selector import XPathSelector, XmlXPathSelector, HtmlXPathSelector +#from scrapy.xpath.constructors import xmlDoc_from_xml, xmlDoc_from_html from scrapy.xpath.iterator import XMLNodeIterator class XPathTestCase(unittest.TestCase): @@ -23,7 +23,7 @@ class XPathTestCase(unittest.TestCase): """Simple selector tests""" body = "
" response = Response(domain="example.com", url="http://example.com", body=body) - xpath = XPathSelector(response) + xpath = HtmlXPathSelector(response) xl = xpath.x('//input') self.assertEqual(2, len(xl)) @@ -59,7 +59,7 @@ class XPathTestCase(unittest.TestCase):