def compareAttribute(self, attrib, value):
        return self.attributes.get(self._dqa(attrib), None) == value
Safely compare the value of an attribute against a provided value.
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/words/xish/domish.py/Element.compareAttribute