'When the protocol loses its connection, it stops trying to send
``NoOp`` commands.'

def test_stop_pinging_on_connection_lost(self):

    reactor = Clock()
    protocol = self.build_protocol(reactor)
    transport = StringTransportWithAbort()
    protocol.makeConnection(transport)
    transport.clear()
    protocol.connectionLost(Failure(ConnectionDone('test,    simulated')))
    reactor.advance(PING_INTERVAL.total_seconds())
    self.assertEqual('', transport.value())
