def test_attribute(self):
        xp = XPathQuery("/foo[@attrib1]")
        self.assertEquals(xp.matches(self.e), True)
Test matching foo with attribute.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/words/test/test_xpath.py/XPathTest.test_attribute