def test_str(self):
        exc = ValueError("some text")
        try:
            raise exc
        except:
            f = failure.Failure()

        error = defer.FirstError(f, 5)
        self.assertEqual(
            str(error),
            "FirstError[#5, %s]" % (str(f),))
Given a cursor position, find and return the diff header and the
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_defer.py/FirstErrorTests.test_str--crossover with--dataset/ETHPy150Open divmain/GitSavvy/core/commands/diff.py/GsDiffStageOrResetHunkCommand.get_hunk_diff