#NEWLINE# def test_targeted_message_when_target_cell_state_is_me( self ) : #NEWLINE# #INDENT# method = 'fake_method' #NEWLINE# method_kwargs = dict ( arg1 = 1 , arg2 = 2 ) #NEWLINE# direction = 'down' #NEWLINE# target_cell = self . state_manager . get_my_state ( ) #NEWLINE# tgt_message = messaging . _TargetedMessage ( self . msg_runner , target_cell . ctxt , method , method_kwargs , direction , target_cell ) #NEWLINE# self . assertEqual ( 'api-cell' , tgt_message . target_cell ) #NEWLINE# next_hop = tgt_message . _get_next_hop ( ) #NEWLINE# self . assertEqual ( target_cell , next_hop )