def test_nested_selector(self): sel = PyquerySelector(self.tree) sel2 = sel.select('ul') self.assertEquals('yet one', sel2.select('li[@class]').text())
def test_pyquery_selector(self): sel = PyquerySelector(self.tree) self.assertEquals('one', sel.select('li').text()) self.assertEquals('yet one', sel.select('.li-1').text())