OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:and_return
(Results
1 - 25
of
31
) sorted by null
1
2
/external/autotest/client/common_lib/test_utils/
mock_demo.py
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
...]
/external/autotest/tko/
utils_unittest.py
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
...]
/external/autotest/scheduler/
drones_unittest.py
31
drones.drone_utility.create_host.expect_call('fakehost').
and_return
(
33
self._mock_host.is_up.expect_call().
and_return
(False)
41
drones.drone_utility.create_host.expect_call('fakehost').
and_return
(
43
self._mock_host.is_up.expect_call().
and_return
(True)
49
connect_timeout=mock.is_instance_comparator(int)).
and_return
(
59
drones.drone_utility.create_host.expect_call('fakehost').
and_return
(
61
self._mock_host.is_up.expect_call().
and_return
(True)
71
connect_timeout=mock.is_instance_comparator(int)).
and_return
(
agent_task_unittest.py
41
system_utils.get_drones.expect_call().
and_return
(self._drones)
43
models.DroneSet.drone_sets_enabled.expect_call().
and_return
(False)
58
system_utils.get_drones.expect_call().
and_return
(self._drones)
60
models.DroneSet.drone_sets_enabled.expect_call().
and_return
(False)
drone_utility_unittest.py
36
self._mock_get_process_info.expect_call().
and_return
([])
68
self._mock_get_process_info.expect_call().
and_return
([])
99
self._mock_get_process_info.expect_call().
and_return
(all_processes)
124
self._mock_get_process_info.expect_call().
and_return
(all_processes)
125
self._mock_process_has_dark_mark.expect_call(3).
and_return
(True)
126
self._mock_process_has_dark_mark.expect_call(369).
and_return
(False)
146
self._mock_get_process_info.expect_call().
and_return
([])
drone_task_queue_unittest.py
32
drones.drone_utility.create_host.expect_call(hostname).
and_return
(
34
self._mock_host.is_up.expect_call().
and_return
(True)
81
).
and_return
(mock_result)
95
connect_timeout=mock.is_instance_comparator(int)).
and_return
(
thread_lib_unittest.py
33
drones.drone_utility.create_host.expect_call(hostname).
and_return
(
35
self._mock_host.is_up.expect_call().
and_return
(True)
68
connect_timeout=mock.is_instance_comparator(int)).
and_return
(
205
).
and_return
(mock_result)
222
connect_timeout=mock.is_instance_comparator(int)).
and_return
(
monitor_db_unittest.py
427
gc.collect.expect_call().
and_return
(0)
540
.
and_return
(self.pidfile_id))
561
self.pidfile_id, use_second_read=use_second_read).
and_return
(
627
self.pidfile_id, use_second_read=False).
and_return
(
636
self.process).
and_return
(is_running)
725
task.is_done.expect_call().
and_return
(False)
742
task.is_done.expect_call().
and_return
(True)
899
models.DroneSet.drone_sets_enabled.expect_call().
and_return
(True)
946
hqe.job, hqe.job.user()).
and_return
(result)
[
all
...]
drone_manager_unittest.py
257
.
and_return
(self.mock_drone))
261
drones.get_drone.expect_call(results_hostname).
and_return
(results_drone)
378
drones.drone_utility.create_host.expect_call(drone_hostname).
and_return
(
380
mock_host.is_up.expect_call().
and_return
(True)
438
).
and_return
(mock_result)
/external/autotest/client/bin/net/
net_utils_unittest.py
87
socket.SOCK_RAW).
and_return
(s)
116
utils.system.expect_call(cmd, ignore_status=True).
and_return
(0)
127
utils.system.expect_call(cmd, ignore_status=True).
and_return
(1)
131
utils.system.expect_call(cmd, ignore_status=True).
and_return
(0)
145
utils.system.expect_call(cmd, ignore_status=True).
and_return
(0)
192
utils.system_output.expect_call(cmd).
and_return
('\n field: match')
198
utils.system_output.expect_call(cmd).
and_return
(None)
202
utils.system_output.expect_call(cmd).
and_return
(' field: match')
214
os.listdir.expect_call(stat_path).
and_return
(())
219
os.listdir.expect_call(stat_path).
and_return
(('some_stat',)
[
all
...]
/external/autotest/server/
autotest_unittest.py
69
utils.get_server_dir.expect_call().
and_return
(self.serverdir)
90
location = os.path.abspath.expect_call(location).
and_return
(location)
94
'../client')).
and_return
('source_material')
98
self.host.get_autodir.expect_call().
and_return
("autodir")
119
type=bool).
and_return
(False)
135
'fetch_location', type=list, default=[]).
and_return
([])
137
os.path.exists.expect_call('/etc/cros_chroot_version').
and_return
(True)
140
type=bool).
and_return
(True)
155
'fetch_location', type=list, default=[]).
and_return
(['repo'])
156
os.path.exists.expect_call('/etc/cros_chroot_version').
and_return
(True
[
all
...]
subcommand_unittest.py
62
subcommand.os.path.abspath.expect_call('dir').
and_return
('/foo/dir')
63
subcommand.os.path.exists.expect_call('/foo/dir').
and_return
(False)
67
.
and_return
(False))
79
subcommand.os.fork.expect_call().
and_return
(1000)
114
subcommand.os.pipe.expect_call().
and_return
((10, 20))
115
subcommand.os.fork.expect_call().
and_return
(0)
118
func.expect_call(1, 2).
and_return
(True)
120
subcommand.cPickle.HIGHEST_PROTOCOL).
and_return
('True')
138
subcommand.os.pipe.expect_call().
and_return
((10, 20))
139
subcommand.os.fork.expect_call().
and_return
(0
[
all
...]
frontend_unittest.py
41
rpc_client_lib.add_protocol.expect_call('test-host').
and_return
(
/external/autotest/server/hosts/
base_classes_unittest.py
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
(
/external/autotest/client/bin/
package_unittest.py
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
...]
partition_unittest.py
78
os.popen.expect_call(SAMPLE_FDISK).
and_return
(
107
partition.partition.expect_call(job, '/dev/hdc3').
and_return
('3')
113
partition.partition.expect_call(job, '/dev/hdc2').
and_return
('2')
114
partition.partition.expect_call(job, '/dev/hdc3').
and_return
('3')
121
partition.partition.expect_call(job, '/dev/hdc3').
and_return
('3')
setup_job_unittest.py
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)
job_unittest.py
195
None).
and_return
(my_harness)
214
os.path.exists.expect_call(download).
and_return
(False)
321
harness_args).
and_return
(None)
336
os.path.exists.expect_call(tmp_dir).
and_return
(True)
337
os.path.isdir.expect_call(tmp_dir).
and_return
(False)
354
os.path.exists.expect_call(tmp_dir).
and_return
(False)
356
os.path.isdir.expect_call(tmp_dir).
and_return
(True)
357
os.path.exists.expect_call(results_dir1).
and_return
(True)
358
os.path.exists.expect_call(results_dir2).
and_return
(True)
359
os.path.exists.expect_call(results_dir3).
and_return
(False
[
all
...]
fsinfo_unittest.py
21
fsinfo.open.expect_call(filename, 'r').
and_return
(test_file)
/external/autotest/client/tests/wb_kupdate/
wb_kupdate_unittest.py
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)
/external/autotest/tko/parsers/
version_0_unittest.py
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)
/external/autotest/client/common_lib/hosts/
base_classes_unittest.py
35
ignore_status=True).
and_return
(
41
host.run.expect_call(command).
and_return
(fake_cmd_status)
/external/autotest/database/
db_utils_unittest.py
70
self.manager.get_db_name.expect_call().
and_return
(self.DB_NAME)
72
self.EXISTS_QUERY_BASE % table, self.DB_NAME).
and_return
(
/external/autotest/client/common_lib/
utils_unittest.py
67
utils.open.expect_call("filename", "r").
and_return
(test_file)
119
utils.open.expect_call("filename", "w").
and_return
(test_file)
158
utils.open.expect_call("filename", "w").
and_return
(test_file)
178
os.path.exists.expect_call(filename).
and_return
(True)
179
utils.open.expect_call(filename).
and_return
(test_file)
183
os.path.isdir.expect_call("file").
and_return
(False)
191
os.path.isdir.expect_call("file").
and_return
(False)
192
os.path.exists.expect_call("file").
and_return
(False)
198
os.path.isdir.expect_call("file").
and_return
(False)
205
os.path.isdir.expect_call("dir").
and_return
(True
[
all
...]
/external/autotest/cli/
cli_mock.py
142
comm.expect_call(op, **dargs).
and_return
(expected)
Completed in 326 milliseconds
1
2