'Verify that registering a producer when the connection has already
been closed invokes its stopProducing() method.'

def test_unconnectedFileDescriptor(self):

    fd = abstract.FileDescriptor()
    fd.disconnected = 1
    dp = DummyProducer()
    fd.registerProducer(dp, 0)
    self.assertEqual(dp.events, ['stop'])
