pha/matchers.py
def _attributes_match(element_def, element):
    """ Checks that the attributes in the def are found in the element, partial match of values is permitted. """

    for key, value in element_def.attrs.items():
        if key not in element.attrs or value not in element.attrs[key]:
            return False
    return True
 Checks that the attributes in the def are found in the element, partial match of values is permitted. 
Checks that the attributes in the def are found in the element, partial match of values is permitted.
Checks that the attributes in the def are found in the element partial match of values is permitted .
def _attributes_match(element_def, element):
    for key, value in element_def.attrs.items():
        if key not in element.attrs or value not in element.attrs[key]:
            return False
    return True
def _attributes_match ( element_def , element ) : for key , value in element_def . attrs . items ( ) : if key not in element . attrs or value not in element . attrs [ key ] : return False return True
Checks that the attributes in the def are found in the element, partial match of values is permitted.
Checks that the attributes in the def are found in the element partial match of values is permitted .
""" Checks that the attributes in the def are found in the element, partial match of values is permitted. """
element_def
element