def assertDiffEqual(self, diff, expected_diff):
    "Assert that two diffs are equal.\n\n        Args:\n            diff (bytes):\n                The generated diff.\n\n            expected_diff (bytes):\n                The expected diff.\n\n        Raises:\n            AssertionError:\n                The diffs aren't equal or of the right type.\n        "
    self.assertIsInstance(diff, bytes)
    self.assertIsInstance(expected_diff, bytes)
    self.assertEqual(diff.splitlines(), expected_diff.splitlines())
Assert that two diffs are equal.

Args:
    diff (bytes):
        The generated diff.

    expected_diff (bytes):
        The expected diff.

Raises:
    AssertionError:
        The diffs aren't equal or of the right type.
def assertDiffEqual(self, diff, expected_diff):
    "Assert that two diffs are equal.\n\n        Args:\n            diff (bytes):\n                The generated diff.\n\n            expected_diff (bytes):\n                The expected diff.\n\n        Raises:\n            AssertionError:\n                The diffs aren't equal or of the right type.\n        "
    self.assertIsInstance(diff, bytes)
    self.assertIsInstance(expected_diff, bytes)
    self.assertEqual(diff.splitlines(), expected_diff.splitlines())