'When a deferred is returned to the manhole REPL, it is displayed with
a sequence number, and when the deferred fires, the result is printed.'

@defer.inlineCallbacks
def test_deferred(self):

    self._testwrite('from    twisted.internet    import    defer,    reactor\nd    =    defer.Deferred()\nd\n')
    (yield self.recvlineClient.expect('<Deferred    #0>'))
    self._testwrite("c    =    reactor.callLater(0.1,    d.callback,    'Hi!')\n")
    (yield self.recvlineClient.expect('>>>    '))
    (yield self.recvlineClient.expect("Deferred    #0    called    back:    'Hi!'\n>>>    "))
    self._assertBuffer(['>>>    from    twisted.internet    import    defer,    reactor', '>>>    d    =    defer.Deferred()', '>>>    d', '<Deferred    #0>', ">>>    c    =    reactor.callLater(0.1,    d.callback,    'Hi!')", "Deferred    #0    called    back:    'Hi!'", '>>>    '])
