def test_connectionLostStopSendingBoxes(self):
        """
        When a binary box protocol loses its connection, it should notify its
        box receiver that it has stopped receiving boxes.
        """
        a = amp.BinaryBoxProtocol(self)
        a.makeConnection(self)
        connectionFailure = Failure(RuntimeError())
        a.connectionLost(connectionFailure)
        self.assertIs(self.stopReason, connectionFailure)

        When a binary box protocol loses its connection, it should notify its
        box receiver that it has stopped receiving boxes.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_amp.py