fix test_rabbit for Python 3
fix test_rabbit for Python 3

Replace range() with list(range()), range() returns a read-only "range" object
in Python 3.

Change-Id: If92e60b426ccbba574e63e1603cc3d7507df6c98

zhurongze/oslo.messaging,zhurongze/oslo.messaging,dims/oslo.messaging,apporc/oslo.messaging,magic0704/oslo.messaging,dukhlov/oslo.messaging,redhat-openstack/oslo.messaging,viggates/oslo.messaging,dims/oslo.messaging,ozamiatin/oslo.messaging,redhat-openstack/oslo.messaging,stevei101/oslo.messaging,dukhlov/oslo.messaging,magic0704/oslo.messaging,apporc/oslo.messaging,isyippee/oslo.messaging,JioCloud/oslo.messaging,isyippee/oslo.messaging,ozamiatin/oslo.messaging,stevei101/oslo.messaging,hkumarmk/oslo.messaging,eayunstack/oslo.messaging,hkumarmk/oslo.messaging