Searched refs:has_attr (Results 1 – 3 of 3) sorted by relevance
623 return lambda el: el.has_attr(attribute)896 def has_attr(self, key): member in Tag1414 return self.has_attr(key)
1144 self.assertTrue(soup.foo.has_attr('attr'))1145 self.assertFalse(soup.foo.has_attr('attr2'))1643 self.assertFalse(els[0].has_attr('class'))
1111 return tag.has_attr('class') and not tag.has_attr('id')2937 * ``Tag.has_key()`` -> ``Tag.has_attr()``