#NEWLINE# def test_recv_nack_with_listener_multiple_msg( self ) : #NEWLINE# #INDENT# self . klass . _nack_listener = mock ( ) #NEWLINE# self . klass . _last_ack_id = 40 #NEWLINE# frame = mock ( ) #NEWLINE# expect ( frame . args . read_longlong ) . returns ( 42 ) #NEWLINE# expect ( frame . args . read_bits ) . args ( 2 ) . returns ( ( True , True ) ) #NEWLINE# expect ( self . klass . _nack_listener ) . args ( 41 , True ) #NEWLINE# expect ( self . klass . _nack_listener ) . args ( 42 , True ) #NEWLINE# self . klass . _recv_nack ( frame ) #NEWLINE# assert_equals ( 42 , frame . klass . _last_ack_id )