Searched refs:and_return (Results 1 – 19 of 19) sorted by relevance
84 m2.method1.expect_call().and_return(1)85 m2.method3.expect_call(10).and_return(10)86 f.expect_call("how many").and_return(42)87 m1.method2.expect_call(5).and_return(0)88 m2.method1.expect_call().and_return(2)89 m2.method4.expect_call(1, 4).and_return(6)90 m2.method2.expect_call(3).and_return(6)91 m2.method2.expect_call(mock.is_string_comparator()).and_return("foo")111 c.method2.expect_call(4).and_return(4)112 c.method3.expect_call(4).and_return(5)[all …]
177 def and_return(self, return_obj): member in function_mapping
69 subcommand.os.path.abspath.expect_call('dir').and_return('/foo/dir')70 subcommand.os.path.exists.expect_call('/foo/dir').and_return(False)74 .and_return(False))86 subcommand.os.fork.expect_call().and_return(1000)121 subcommand.os.pipe.expect_call().and_return((10, 20))122 subcommand.os.fork.expect_call().and_return(0)125 func.expect_call(1, 2).and_return(True)127 six.moves.cPickle.HIGHEST_PROTOCOL).and_return('True')145 subcommand.os.pipe.expect_call().and_return((10, 20))146 subcommand.os.fork.expect_call().and_return(0)[all …]
70 utils.get_server_dir.expect_call().and_return(self.serverdir)91 location = os.path.abspath.expect_call(location).and_return(location)95 '../client')).and_return('source_material')99 self.host.get_autodir.expect_call().and_return("autodir")120 type=bool).and_return(False)137 'fetch_location', type=list, default=[]).and_return([])139 os.path.exists.expect_call('/etc/cros_chroot_version').and_return(True)142 type=bool).and_return(True)159 'fetch_location', type=list, default=[]).and_return(['repo'])160 os.path.exists.expect_call('/etc/cros_chroot_version').and_return(True)[all …]
41 rpc_client_lib.add_protocol.expect_call('test-host').and_return(
25 os.path.isfile.expect_call(input_package).and_return(True)27 'file ' + input_package).and_return(result)29 'file ' + input_package).and_return(result)49 utils.system_output.expect_call(v_cmd).and_return(ver)53 utils.system_output.expect_call(s_cmd).and_return('source')55 utils.system_output.expect_call(v_cmd).and_return(ver)57 utils.system_output.expect_call(a_cmd).and_return('586')84 utils.system_output.expect_call(v_cmd).and_return(ver)87 utils.system_output.expect_call(v_cmd).and_return(ver)89 utils.system_output.expect_call(a_cmd).and_return('586')[all …]
198 None).and_return(my_harness)217 os.path.exists.expect_call(download).and_return(False)324 harness_args).and_return(None)339 os.path.exists.expect_call(tmp_dir).and_return(True)340 os.path.isdir.expect_call(tmp_dir).and_return(False)357 os.path.exists.expect_call(tmp_dir).and_return(False)359 os.path.isdir.expect_call(tmp_dir).and_return(True)360 os.path.exists.expect_call(results_dir1).and_return(True)361 os.path.exists.expect_call(results_dir2).and_return(True)362 os.path.exists.expect_call(results_dir3).and_return(False)[all …]
211 os.path.exists.expect_call(tmp_dir).and_return(True)212 os.path.isdir.expect_call(tmp_dir).and_return(False)229 os.path.exists.expect_call(tmp_dir).and_return(False)231 os.path.isdir.expect_call(tmp_dir).and_return(True)232 os.path.exists.expect_call(results_dir1).and_return(True)233 os.path.exists.expect_call(results_dir2).and_return(True)234 os.path.exists.expect_call(results_dir3).and_return(False)235 os.path.exists.expect_call(results_dir3).and_return(False)
83 os.popen.expect_call(SAMPLE_FDISK).and_return(112 partition.partition.expect_call(job, '/dev/hdc3').and_return('3')118 partition.partition.expect_call(job, '/dev/hdc2').and_return('2')119 partition.partition.expect_call(job, '/dev/hdc3').and_return('3')126 partition.partition.expect_call(job, '/dev/hdc3').and_return('3')
25 fsinfo.open.expect_call(filename, 'r').and_return(test_file)
57 jobdir + "/.autoserv_execute").and_return(True)64 jobdir + "/sub/.autoserv_execute").and_return(False)66 jobdir + "/.autoserv_execute").and_return(True)73 jobdir + "/sub/sub/.autoserv_execute").and_return(False)75 jobdir + "/sub/.autoserv_execute").and_return(False)77 jobdir + "/.autoserv_execute").and_return(True)84 jobdir + "/.autoserv_execute").and_return(False)86 "/results/.autoserv_execute").and_return(False)87 os.path.exists.expect_call("/.autoserv_execute").and_return(True)94 jobdir + "/.autoserv_execute").and_return(False)[all …]
41 expect(@call).to receive(:read_unary_request).once.and_return(Object.new)48 expect(@call).to receive(:read_unary_request).once.and_return(Object.new)56 expect(@call).to receive(:read_unary_request).once.and_return(Object.new)77 allow(@call).to receive(:single_req_view).and_return(@call)78 allow(@call).to receive(:output_metadata).and_return(@call)85 expect(@call).to receive(:read_unary_request).once.and_return(req)86 expect(@call).to receive(:output_metadata).once.and_return(fake_md)97 allow(@call).to receive(:multi_req_view).and_return(@call)121 allow(@call).to receive(:output_metadata).and_return({})129 expect(@call).to receive(:output_metadata).and_return([all …]
31 utils.get_server_dir.expect_call().and_return("/unittest/server")53 "HOSTS", "wait_up_processes", default="").and_return("")62 "HOSTS", "wait_up_processes", default="").and_return(" ")71 "HOSTS", "wait_up_processes", default="").and_return("proc1")81 "HOSTS", "wait_up_processes", default="").and_return(92 "HOSTS", "wait_up_processes", default="").and_return(
53 self._wbkupdate_obj._get_disk_usage.expect_call('').and_return(10)55 self._wbkupdate_obj._get_disk_usage.expect_call('').and_return(10)57 self._wbkupdate_obj._get_disk_usage.expect_call('').and_return(11)80 self._wbkupdate_obj._get_disk_usage.expect_call('').and_return(10)82 self._wbkupdate_obj._get_disk_usage.expect_call('').and_return(10)
38 .and_return(return_dict))42 models.job.read_keyval.expect_call('.').and_return(56 models.job.read_keyval.expect_call('.').and_return(raw_keyval)75 version_0.job.find_hostname.expect_call('.').and_return('foo')100 models.job.read_keyval.expect_call('.').and_return(raw_keyval)113 models.job.read_keyval.expect_call('.').and_return(raw_keyval)127 models.job.read_keyval.expect_call('.').and_return(raw_keyval)
78 utils.open.expect_call("filename", "r").and_return(test_file)130 utils.open.expect_call("filename", "w").and_return(test_file)169 utils.open.expect_call("filename", "w").and_return(test_file)189 os.path.exists.expect_call(filename).and_return(True)190 utils.open.expect_call(filename).and_return(test_file)194 os.path.isdir.expect_call("file").and_return(False)202 os.path.isdir.expect_call("file").and_return(False)203 os.path.exists.expect_call("file").and_return(False)209 os.path.isdir.expect_call("file").and_return(False)216 os.path.isdir.expect_call("dir").and_return(True)[all …]
35 ignore_status=True).and_return(41 host.run.expect_call(command).and_return(fake_cmd_status)
70 self.manager.get_db_name.expect_call().and_return(self.DB_NAME)72 self.EXISTS_QUERY_BASE % table, self.DB_NAME).and_return(
35 socket.socket.expect_call().and_return(sock)