'The repr of a L{FirstError} instance includes the repr of the value of
the sub-failure and the index which corresponds to the L{FirstError}.'

def test_repr(self):

    exc = ValueError('some    text')
    try:
        raise exc
    except:
        f = failure.Failure()
    error = defer.FirstError(f, 3)
    self.assertEqual(repr(error), ('FirstError[#3,    %s]' % (repr(exc),)))
