#NEWLINE# def should_not_have_received_method( self , channel_number , method ) : #NEWLINE# #INDENT# results = ( read ( x ) for x in self . data ) #NEWLINE# frames = [ x for x in results if ( x is not None ) ] #NEWLINE# frame = asynqp . frames . MethodFrame ( channel_number , method ) #NEWLINE# assert ( method not in frames ) , '{} should not have been in {}' . format ( frame , frames )