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),))
analogous to above but for roles
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_defer.py/FirstErrorTests.test_repr--crossover with--dataset/ETHPy150Open codelucas/flask_reddit/flask_reddit/users/models.py/User.get_role