'When a binary box protocol loses its connection, it should notify its
box receiver that it has stopped receiving boxes.'

def test_connectionLostStopSendingBoxes(self):

    a = amp.BinaryBoxProtocol(self)
    a.makeConnection(self)
    connectionFailure = Failure(RuntimeError())
    a.connectionLost(connectionFailure)
    self.assertIs(self.stopReason, connectionFailure)
