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
30
) 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
(
scheduler_models_unittest.py
70
test_time.expect_call().
and_return
(33)
71
test_time.expect_call().
and_return
(34.01)
72
test_time.expect_call().
and_return
(34.99)
73
test_time.expect_call().
and_return
(35.01)
270
dispatcher.get_agents_for_entry.expect_call(hqe).
and_return
([agent])
271
agent.is_done.expect_call().
and_return
(agent_finished)
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
...]