#NEWLINE# def test_follower_server_on_receive_vote_request_after_sending_a_vote( 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# msg = RequestVoteMessage ( 2 , 1 , 2 , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . server . on_message ( self ) #NEWLINE# self . assertEquals ( 0 , self . server . _state . _last_vote )