#NEWLINE# def test_basic_publish_unique_delivery_tags( self , n = 'test_uniq_tag' ) : #NEWLINE# #INDENT# c1 = memory_client ( ) . channel ( ) #NEWLINE# c2 = memory_client ( ) . channel ( ) #NEWLINE# for c in ( c1 , c2 ) : #NEWLINE# #INDENT# c . exchange_declare ( n ) #NEWLINE# c . queue_declare ( n ) #NEWLINE# c . queue_bind ( n , n , n ) #NEWLINE# #UNINDENT# m1 = c1 . prepare_message ( 'George Costanza' ) #NEWLINE# m2 = c2 . prepare_message ( 'Elaine Marie Benes' ) #NEWLINE# c1 . basic_publish ( m1 , n , n ) #NEWLINE# c2 . basic_publish ( m2 , n , n ) #NEWLINE# r1 = c1 . message_to_python ( c1 . basic_get ( n ) ) #NEWLINE# r2 = c2 . message_to_python ( c2 . basic_get ( n ) ) #NEWLINE# self . assertNotEqual ( r1 . delivery_tag , r2 . delivery_tag ) #NEWLINE# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# int ( r1 . delivery_tag ) #NEWLINE# #UNINDENT# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# int ( r2 . delivery_tag )