'resumeProducing calls abortConnection(), and then raises an exception.
The connection will be lost, with the thrown exception
(C{ZeroDivisionError}) as the reason on the client. The idea here is
that bugs should not be masked by abortConnection, in particular
unexpected exceptions.'

def test_resumeProducingThrows(self):

    self.runAbortTest(ResumeThrowsClient, ConnectableProtocol, clientConnectionLostReason=ZeroDivisionError)
    errors = self.flushLoggedErrors(ZeroDivisionError)
    self.assertEqual(len(errors), 1)
