#NEWLINE# def test_poll_and_dispatch( self ) : #NEWLINE# #INDENT# self . http_interface . reset ( ) #NEWLINE# self . comm . poll_and_dispatch ( ) #NEWLINE# expected = [ MESSAGES [ 0 ] [ 'content' ] , MESSAGES [ 1 ] [ 'content' ] ] #NEWLINE# self . assertEqual ( self . agent . dispatch_log , self )