@staticmethod
def _equalOrNone(mfi1, mfi2):
    """This is not a strict comparison between self and other but this is
        needed, especially for unit test in the case an empty filePath is equal
        to a MatrixFileInfo set to None.
        :warning: Direct inheritance from url.DataUrl.__str__ is not possible
        because enter in conflict with the url.DataUrl source code.
        """
    if mfi1 is not None and mfi2 is None:
        return mfi1.file_path() in (None, '')
    elif mfi2 is not None and mfi1 is None:
        return mfi2.file_path() in (None, '')
    else:
        return mfi1 == mfi2
