#NEWLINE# def deserialize_vendor_action( self , action_length , buf ) : #NEWLINE# #INDENT# subtype = buf . unpack ( '!H' ) [ 0 ] #NEWLINE# if ( a != MockVendorAction . subtype ) : #NEWLINE# #INDENT# raise ValueError ( 'wrong vendor action subtype' , subtype ) #NEWLINE# #UNINDENT# a = MockVendorAction . deserialize ( buf ) #NEWLINE# self . calls_made . append ( ( 'deserialize_vendor_action' , action_length , a ) ) #NEWLINE# return a