#NEWLINE# def test_unique_msg_ids( self ) : #NEWLINE# #INDENT# 'test that messages receive unique ids' #NEWLINE# ids = set ( ) #NEWLINE# for i in range ( ( 2 ** 12 ) ) : #NEWLINE# #INDENT# h = self . session . msg_header ( 'test' ) #NEWLINE# msg_id = h [ 'msg_id' ] #NEWLINE# self . assertTrue ( ( msg_id not in ids ) ) #NEWLINE# ids . add ( msg_id )