HomeSort by relevance Sort by last modified time
    Searched refs:god (Results 1 - 25 of 60) sorted by null

1 2 3

  /external/autotest/client/common_lib/
test_unittest.py 35 self.god = mock.mock_god()
40 self.god.unstub_all()
48 self.god.stub_function(self.test, 'run_once_profiling')
49 self.god.stub_function(self.test, 'postprocess')
50 self.god.stub_function(self.test, 'process_failed_constraints')
55 self.god.stub_function(self.test, 'drop_caches_between_iterations')
56 self.god.stub_function(self.test, 'run_once')
57 self.god.stub_function(self.test, 'postprocess_iteration')
58 self.god.stub_function(self.test, 'analyze_perf_constraints')
59 before_hook = self.god.create_mock_function('before_hook'
    [all...]
boottool_unittest.py 12 self.god = mock.mock_god()
15 self.god.stub_function(self.bt_mock, '_run_boottool')
19 self.god.unstub_all()
31 self.god.check_playback()
39 self.god.check_playback()
47 self.god.check_playback()
58 self.god.check_playback()
76 self.god.check_playback()
91 self.god.check_playback()
119 self.god.check_playback(
    [all...]
  /external/autotest/client/bin/
harness_unittest.py 10 self.god = mock.mock_god()
14 self.god.unstub_all()
19 self.god.stub_class(harness_standalone, "harness_standalone")
24 self.god.check_playback()
29 self.god.stub_class(harness_standalone, "harness_standalone")
34 self.god.check_playback()
39 self.god.stub_class(harness_ABAT, "harness_ABAT")
44 self.god.check_playback()
job_unittest.py 21 self.god = mock.mock_god(ut=self)
22 self.god.stub_with(job.base_client_job, '_get_environ_autodir',
29 self.god.unstub_all()
59 self.god.stub_function_to_return(job.os, 'mkdir', None)
60 self.god.stub_function_to_return(job.os.path, 'exists', True)
61 self.god.stub_function_to_return(self.job, '_load_state', None)
62 self.god.stub_function_to_return(self.job, 'record', None)
63 self.god.stub_function_to_return(job.shutil, 'copyfile', None)
64 self.god.stub_function_to_return(job.logging_manager,
69 self.god.stub_function_to_return(job.logging_manager
    [all...]
kernel_unittest.py 15 god = mock.mock_god()
16 bootloader = god.create_mock_class(boottool.boottool, "boottool")
30 god.check_playback()
45 self.god = mock.mock_god()
46 self.god.stub_function(time, "time")
47 self.god.stub_function(utils, "system")
48 self.god.stub_function(kernel, "_add_kernel_to_bootloader")
49 job_ = self.god.create_mock_class(job.job, "job")
51 self.kernel.job.bootloader = self.god.create_mock_class(
57 self.god.unstub_all(
    [all...]
setup_job_unittest.py 21 self.god = mock.mock_god()
22 self.god.stub_with(setup_job.setup_job, '_get_environ_autodir',
30 self.god.unstub_all()
63 self.god.stub_function_to_return(setup_job.os, 'mkdir', None)
64 self.god.stub_function_to_return(setup_job.os.path, 'exists', True)
65 self.god.stub_function_to_return(self.job, '_load_state', None)
66 self.god.stub_function_to_return(setup_job.logging_manager,
71 self.god.stub_function_to_return(setup_job.logging_manager,
104 # make god
105 self.god = mock.mock_god(
    [all...]
local_host_unittest.py 13 self.god = mock.mock_god()
14 self.god.stub_function(local_host.utils, 'run')
20 self.god.unstub_all()
25 self.god.stub_function(local_host.platform, 'node')
31 self.god.check_playback()
35 self.god.check_playback()
42 self.god.check_playback()
65 self.god.check_playback()
76 self.god.check_playback()
87 self.god.check_playback(
    [all...]
  /external/autotest/scheduler/
gc_stats_unittest.py 14 self.god = mock.mock_god()
18 self.god.unstub_all()
28 self.god.stub_with(logging, 'debug', _mock_logging_func)
29 self.god.stub_with(logging, 'info', _mock_logging_func)
drones_unittest.py 18 self.god = mock.mock_god()
19 self._mock_host = self.god.create_mock_class(ssh_host.SSHHost,
21 self.god.stub_function(drones.drone_utility, 'create_host')
26 self.god.unstub_all()
38 self.god.stub_with(drones._RemoteDrone, '_drone_utility_path',
52 self.god.check_playback()
56 self.god.stub_with(drones._RemoteDrone, '_drone_utility_path',
73 self.god.check_playback()
agent_task_unittest.py 39 self.god.stub_function(system_utils, 'get_drones')
41 self.god.stub_function(models.DroneSet, 'drone_sets_enabled')
49 self.god.check_playback()
56 self.god.stub_function(system_utils, 'get_drones')
58 self.god.stub_function(models.DroneSet, 'drone_sets_enabled')
66 self.god.check_playback()
80 self.god.check_playback()
  /external/autotest/client/bin/net/
net_utils_unittest.py 18 self.god = mock.mock_god()
19 self.god.stub_function(utils, "system")
20 self.god.stub_function(utils, "system_output")
21 self.god.stub_function(utils, "module_is_loaded")
22 self.god.stub_function(net_utils, "open")
23 self.god.stub_function(time, 'sleep')
25 self.god.stub_with(net_utils,"bond", net_utils.bonding)
26 self.god.stub_with(os, 'open', net_utils_mock.os_open)
27 self.god.stub_with(net_utils, 'netif', net_utils_mock.netutils_netif)
33 self.god.unstub_all(
    [all...]
  /external/autotest/server/
autotest_unittest.py 17 # create god
18 self.god = mock.mock_god()
21 self.host = self.god.create_mock_class(hosts.RemoteHost, "host")
23 self.host.job = self.god.create_mock_class(server_job.server_job,
27 self.host.job.sysinfo = self.god.create_mock_class(
29 self.host.job.profilers = self.god.create_mock_class(
38 self.god.stub_function(utils, "get_server_dir")
39 self.god.stub_function(utils, "run")
40 self.god.stub_function(utils, "get")
41 self.god.stub_function(utils, "read_keyval"
    [all...]
subcommand_unittest.py 29 self.god = mock.mock_god()
33 self.god.unstub_all()
57 self.god.check_playback()
59 self.god.stub_function(subcommand.os.path, 'abspath')
60 self.god.stub_function(subcommand.os.path, 'exists')
61 self.god.stub_function(subcommand.os, 'mkdir')
74 self.god.check_playback()
78 self.god.stub_function(subcommand.os, 'fork')
81 func = self.god.create_mock_function('func')
92 self.god.check_playback(
    [all...]
frontend_unittest.py 22 self.god = mock.mock_god()
23 self.god.mock_up(rpc_client_lib, 'rpc_client_lib')
24 self.god.stub_function(utils, 'send_email')
31 self.god.unstub_all()
44 self.god.check_playback()
58 self.god.stub_function(utils, 'send_email')
64 self.god.stub_with(sys, 'stdout', fake_stdout)
66 self.god.unstub(sys, 'stdout')
69 self.god.check_playback()
rpm_kernel_unittest.py 13 self.god = mock.mock_god()
15 self.god.stub_function(utils, "run")
20 self.god.unstub_all()
24 host = self.god.create_mock_class(hosts.RemoteHost, "host")
25 host.bootloader = self.god.create_mock_class(bootloader.Bootloader,
27 self.god.stub_function(self.kernel, "get_image_name")
28 self.god.stub_function(self.kernel, "get_vmlinux_name")
55 self.god.check_playback()
70 self.god.check_playback()
83 self.god.check_playback(
    [all...]
source_kernel_unittest.py 11 self.god = mock.mock_god()
12 self.host = self.god.create_mock_class(hosts.RemoteHost, "host")
13 self.god.stub_class(source_kernel.autotest, "Autotest")
24 self.god.unstub_all()
40 self.god.check_playback()
58 self.god.check_playback()
deb_kernel_unittest.py 13 self.god = mock.mock_god()
15 self.host = self.god.create_mock_class(hosts.RemoteHost, "host")
16 self.host.bootloader = self.god.create_mock_class(
18 self.god.stub_function(utils, "run")
22 self.god.unstub_all()
59 self.god.check_playback()
74 self.god.check_playback()
  /external/autotest/server/hosts/
base_classes_unittest.py 14 self.god = mock.mock_god()
16 self.god.stub_with(utils, "get_server_dir",
18 self.god.stub_function(global_config.global_config,
26 self.god.unstub_all()
31 self.god.stub_function(utils, "get_server_dir")
34 self.god.create_mock_class_obj(self.real_bootloader,
44 self.god.check_playback()
53 installableObj = self.god.create_mock_class(installable,
58 self.god.check_playback()
67 self.god.check_playback(
    [all...]
bootloader_unittest.py 14 self.god = mock.mock_god()
17 self.god.stub_function(utils, "get_server_dir")
21 self.god.unstub_all()
26 return self.god.create_mock_class(hosts.RemoteHost, "host")
31 self.god.create_mock_function("_install_boottool")
61 self.god.check_playback()
77 self.god.check_playback()
91 self.god.check_playback()
93 self.god.check_playback()
  /external/autotest/database/
db_utils_unittest.py 16 self.god = mock.mock_god()
17 self.manager = self.god.create_mock_class(migrate.MigrationManager,
20 self.god.stub_function(self.manager, 'execute')
21 self.god.stub_function(self.manager, 'get_db_name')
25 self.god.unstub_all()
35 self.god.check_playback()
39 self.god.check_playback()
50 self.god.check_playback()
66 self.god.check_playback()
database_connection_unittest.py 26 self.god = mock.mock_god()
27 self.god.stub_function(time, 'sleep')
32 self.god.unstub_all()
40 self._fake_backend = self.god.create_mock_class(
49 self.god.stub_with(db, '_get_backend', get_fake_backend)
72 self.god.check_playback()
82 self.god.check_playback()
108 self.god.check_playback()
114 self.god.check_playback()
120 self.god.check_playback(
    [all...]
  /external/autotest/client/common_lib/test_utils/
mock_demo.py 73 god = mock.mock_god()
75 m1 = god.create_mock_class(A, "A")
77 m2 = god.create_mock_class(B, "B")
78 f = god.create_mock_function("func")
94 for func_call in god.recording:
102 god.check_playback()
107 god.mock_up(c, "c")
119 god.check_playback()
122 m3 = god.create_mock_class(D, "D")
127 god.check_playback(
    [all...]
  /external/autotest/client/common_lib/hosts/
base_classes_unittest.py 13 self.god = mock.mock_god()
17 self.god.unstub_all()
26 self.god.stub_function(base_classes.Host, 'run')
39 self.god.check_playback()
  /external/autotest/cli/
cli_mock.py 31 self.god = mock.mock_god(debug=CLI_UT_DEBUG, ut=self)
32 self.god.stub_class_method(rpc.afe_comm, 'run')
33 self.god.stub_function(sys, 'exit')
37 self.god.stub_with(rpc_client_lib, 'authorization_headers',
43 self.god.unstub_all()
76 self.god.mock_io()
79 (out, err) = self.god.unmock_io()
110 self.god.mock_io()
116 (out, err) = self.god.unmock_io()
117 self.god.check_playback(
    [all...]
action_common_unittest.py 78 self.god.stub_function(sys, 'exit')
80 self.god.mock_io()
83 (out, err) = self.god.unmock_io()
84 self.god.check_playback()
106 self.god.mock_io()
111 (out, err) = self.god.unmock_io()
112 self.god.check_playback()
166 self.god.mock_io()
171 (out, err) = self.god.unmock_io()
172 self.god.check_playback(
    [all...]

Completed in 5256 milliseconds

1 2 3