def match(self, name=None, ns=None):
        if name is None:
            byname = True
        else:
            byname = ( self.name == name )
        if ns is None:
            byns = True
        else:
            byns = ( self.namespace()[1] == ns[1] )
        return ( byname and byns )
Match by (optional) name and/or (optional) namespace.
dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/suds/sax/attribute.py/Attribute.match