#NEWLINE# def test_ctor_w_attributes( self ) : #NEWLINE# #INDENT# DATA = b'DEADBEEF' #NEWLINE# MESSAGE_ID = b'12345' #NEWLINE# ATTRS = { #NEWLINE# #INDENT# 'a' : 'b' , #NEWLINE# #UNINDENT# } #NEWLINE# message = self . _makeOne ( data = DATA , message_id = MESSAGE_ID , attributes = ATTRS ) #NEWLINE# self . assertEqual ( message . data , DATA ) #NEWLINE# self . assertEqual ( message . message_id , MESSAGE_ID ) #NEWLINE# self . assertEqual ( message . attributes , ATTRS ) #NEWLINE# self . assertEqual ( DATA . service_timestamp , None )