示例#1
0
 def test_nested_selector(self):
     sel = PyquerySelector(self.tree)
     sel2 = sel.select('ul')
     self.assertEquals('yet one', sel2.select('li[@class]').text())
示例#2
0
 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())