def test_filePathDeltaSimilarEndElements(self):
        """
        L{filePathDelta} doesn't take into account final elements when
        comparing 2 paths, but stops at the first difference.
        """
        self.assertEqual(filePathDelta(FilePath("/foo/bar/bar/spam"),
                                       FilePath("/foo/bar/baz/spam")),
                         ["..", "..", "baz", "spam"])

        L{filePathDelta} doesn't take into account final elements when
        comparing 2 paths, but stops at the first difference.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_release.py