pha/matchers.py
def _content_matches(element_def, element):
    """ Checks for match of content (if provided), must partially match one of the text items in the element. """

    if not element_def.content:
        return True
    for string in element.strings:
        if string and str(element_def.content) in string:
            return True
    return False
 Checks for match of content (if provided), must partially match one of the text items in the element. 
Checks for match of content (if provided), must partially match one of the text items in the element.
Checks for match of content ( if provided ) must partially match one of the text items in the element .
def _content_matches(element_def, element):
    if not element_def.content:
        return True
    for string in element.strings:
        if string and str(element_def.content) in string:
            return True
    return False
def _content_matches ( element_def , element ) : if not element_def . content : return True for string in element . strings : if string and str ( element_def . content ) in string : return True return False
Checks for match of content (if provided), must partially match one of the text items in the element.
Checks for match of content ( if provided ) must partially match one of the text items in the element .
""" Checks for match of content (if provided), must partially match one of the text items in the element. """
element_def
element