#NEWLINE# def test_replicate_object_different_region( self ) : #NEWLINE# #INDENT# db_replicator . ring = FakeRingWithNodes ( ) #NEWLINE# replicator = TestReplicator ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# replicator . _repl_to_node = mock . Mock ( ) #NEWLINE# replicator . _replicate_object ( '0' , '/path/to/file' , 1 ) #NEWLINE# self . assertEqual ( replicator . _repl_to_node . call_args_list [ 0 ] [ 0 ] [ ( - 1 ) ] , True ) #NEWLINE# self . assertEqual ( self . _repl_to_node . call_args_list [ 1 ] [ 0 ] [ ( - 1 ) ] , False )