def test_xpath_select(): field = TextField(xpath_select='/html/head/title') value = field.extract_value(html) assert value == "ruia"
def test_css_select(): field = TextField(css_select="head title") value = field.extract_value(html) assert value == "ruia"