#NEWLINE# def _test_read( self , stream , payload , private_key_uuid , offset , common_template_attribute , private_key_template_attribute , public_key_template_attribute ) : #NEWLINE# #INDENT# payload . read ( stream ) #NEWLINE# msg = 'private_key_uuid decoding mismatch' #NEWLINE# msg += '; expected {0}, received {1}' . format ( private_key_uuid , payload . private_key_uuid ) #NEWLINE# self . assertEqual ( private_key_uuid , payload . private_key_uuid , msg ) #NEWLINE# msg = 'offset decoding mismatch' #NEWLINE# msg += '; expected {0}, received {1}' . format ( offset , payload . offset ) #NEWLINE# self . assertEqual ( offset , payload . offset , msg ) #NEWLINE# msg = 'common_template_attribute decoding mismatch' #NEWLINE# msg += '; expected {0}, received {1}' . format ( common_template_attribute , payload . common_template_attribute ) #NEWLINE# self . assertEqual ( common_template_attribute , payload . common_template_attribute , msg ) #NEWLINE# msg = 'private_key_template_attribute decoding mismatch' #NEWLINE# msg += '; expected {0}, received {1}' . format ( private_key_template_attribute , payload . private_key_template_attribute ) #NEWLINE# self . assertEqual ( private_key_template_attribute , payload . private_key_template_attribute , msg ) #NEWLINE# msg = 'public_key_template_attribute decoding mismatch' #NEWLINE# msg += '; expected {0}, received {1}' . format ( public_key_template_attribute , payload . public_key_template_attribute ) #NEWLINE# self . assertEqual ( public_key_template_attribute , payload . public_key_template_attribute , msg )