pytest_wdl/data_types/__init__.py
def assert_contents_equal(self, other: Union[str, Path, "DataFile"]) -> None:
        """
        Assert the contents of two files are equal.

        If `allowed_diff_lines == 0`, files are compared using MD5 hashes, otherwise
        their contents are compared using the linux `diff` command.

        Args:
            other: A `DataFile` or string file path.

        Raises:
            AssertionError if the files are different.
        """
        other_compare_opts = {}
        if isinstance(other, Path):
            other_path = other
        elif isinstance(other, str):
            other_path = Path(other)
        else:
            other_df = cast(DataFile, other)
            other_path = other_df.path
            other_compare_opts = other.compare_opts

        self._assert_contents_equal(other_path, other_compare_opts)

        Assert the contents of two files are equal.

        If `allowed_diff_lines == 0`, files are compared using MD5 hashes, otherwise
        their contents are compared using the linux `diff` command.

        Args:
            other: A `DataFile` or string file path.

        Raises:
            AssertionError if the files are different.
        
Assert the contents of two files are equal.
If `allowed_diff_lines == 0`, files are compared using MD5 hashes, otherwise
their contents are compared using the linux `diff` command.

A `DataFile` or string file path.

AssertionError if the files are different.
Assert the contents of two files are equal . If ` allowed_diff_lines == 0 ` files are compared using MD5 hashes otherwise their contents are compared using the linux ` diff ` command . A ` DataFile ` or string file path . AssertionError if the files are different .
def assert_contents_equal(self, other: Union[str, Path, "DataFile"]) -> None:
        other_compare_opts = {}
        if isinstance(other, Path):
            other_path = other
        elif isinstance(other, str):
            other_path = Path(other)
        else:
            other_df = cast(DataFile, other)
            other_path = other_df.path
            other_compare_opts = other.compare_opts
        self._assert_contents_equal(other_path, other_compare_opts)
def assert_contents_equal ( self , other : Union [ str , Path , "DataFile" ] ) -> None : other_compare_opts = { } if isinstance ( other , Path ) : other_path = other elif isinstance ( other , str ) : other_path = Path ( other ) else : other_df = cast ( DataFile , other ) other_path = other_df . path other_compare_opts = other . compare_opts self . _assert_contents_equal ( other_path , other_compare_opts )
Assert the contents of two files are equal.
Assert the contents of two files are equal .
"""
        Assert the contents of two files are equal.

        If `allowed_diff_lines == 0`, files are compared using MD5 hashes, otherwise
        their contents are compared using the linux `diff` command.

        Args:
            other: A `DataFile` or string file path.

        Raises:
            AssertionError if the files are different.
        """
self
other
Union[str, Path, "DataFile"]