def test_select_select(self): root = KitSelector(self.qt_doc) self.assertEquals( set(['one', 'yet one']), set([x.text() for x in root.select('ul').select('li:first-child')]), )
def test_attr_list(self): root = KitSelector(self.qt_doc) self.assertEquals(set(['li-1', 'li-2']), set(root.select('ul[id=second-list] > li')\ .attr_list('class')) )
def test_text_list(self): root = KitSelector(self.qt_doc) self.assertEquals( set(['one', 'yet one']), set(root.select('ul > li:first-child').text_list()), )
def test_text_list(self): root = KitSelector(self.qt_doc) self.assertEquals(set(['one', 'yet one']), set(root.select('ul > li:first-child').text_list()), )
def test_select_select(self): root = KitSelector(self.qt_doc) self.assertEquals(set(['one', 'yet one']), set([x.text() for x in root.select('ul').select('li:first-child')]), )