'L{amp.BinaryBoxProtocol.unhandledError} completes without error when
there is no associated transport.'

def test_unhandledErrorWithoutTransport(self):

    protocol = amp.BinaryBoxProtocol(self)
    protocol.makeConnection(StringTransport())
    protocol.connectionLost(Failure(Exception('Simulated')))
    protocol.unhandledError(Failure(RuntimeError('Fake    error')))
    self.assertEqual(1, len(self.flushLoggedErrors(RuntimeError)))
