#NEWLINE# def testBuildCommands( self ) : #NEWLINE# #INDENT# vm = mock . MagicMock ( ) #NEWLINE# vm . RobustRemoteCommand = mock . MagicMock ( return_value = ( '' , '' ) ) #NEWLINE# with mock . patch ( ( time . __name__ + '.time' ) , return_value = 1.0 ) : #NEWLINE# #INDENT# with mock . patch ( ( object_storage_service_benchmark . __name__ + '._ProcessMultiStreamResults' ) ) : #NEWLINE# #INDENT# object_storage_service_benchmark . ApiBasedBenchmarks ( [ ] , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , vm , 'GCP' , 'test_script.py' , 'bucket' ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertEqual ( vm . RobustRemoteCommand . call_args_list [ 0 ] , mock . call ( 'test_script.py --storage_provider=GCP --bucket=bucket --objects_per_stream=100 --object_sizes="{1000: 100.0}" --num_streams=10 --start_time=7.0 --objects_written_file=/tmp/pkb/pkb-objects-written --scenario=MultiStreamWrite' , should_log = True ) ) #NEWLINE# self . assertEqual ( vm . RobustRemoteCommand . call_args_list [ 1 ] , mock . call ( 'test_script.py --storage_provider=GCP --bucket=bucket --objects_per_stream=100 --num_streams=10 --start_time=7.0 --objects_written_file=/tmp/pkb/pkb-objects-written --scenario=MultiStreamRead' , should_log = True ) )