#NEWLINE# @ mock . patch ( 'swift.common.db_replicator.ReplConnection' , mock . Mock ( ) ) #NEWLINE# def test_http_connect( self ) : #NEWLINE# #INDENT# node = 'node' #NEWLINE# partition = 'partition' #NEWLINE# db_file = __file__ #NEWLINE# replicator = TestReplicator ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# replicator . _http_connect ( self , partition , db_file ) #NEWLINE# db_replicator . ReplConnection . assert_has_calls ( [ mock . call ( node , partition , os . path . basename ( db_file ) . split ( '.' , 1 ) [ 0 ] , replicator . logger ) ] )