def test_reprWithResult(self):
        """
        If a L{Deferred} has been fired, then its C{repr()} contains its
        result.
        """
        d = defer.Deferred()
        d.callback('orange')
        self.assertEqual(
            repr(d), "<Deferred at 0x%x current result: 'orange'>" % (
                id(d),))

        If a L{Deferred} has been fired, then its C{repr()} contains its
        result.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_defer.py