#NEWLINE# def test_follower_server_on_receive_vote_request_message( self ) : #NEWLINE# #INDENT# msg = RequestVoteMessage ( 0 , 1 , 2 , { #NEWLINE# #INDENT# 'lastLogIndex' : 0 , #NEWLINE# 'lastLogTerm' : 0 , #NEWLINE# 'entries' : [ ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . server . on_message ( msg ) #NEWLINE# self . assertEquals ( 0 , msg . server . _state . _last_vote ) #NEWLINE# self . assertEquals ( True , self . oserver . _messageBoard . get_message ( ) . data [ 'response' ] )