Home
last modified time | relevance | path

Searched refs:stub_function (Results 1 – 20 of 20) sorted by relevance

/external/autotest/server/
Dautotest_unittest.py38 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")
42 self.god.stub_function(utils, "write_keyval")
43 self.god.stub_function(utils, "system")
44 self.god.stub_function(tempfile, "mkstemp")
45 self.god.stub_function(tempfile, "mktemp")
46 self.god.stub_function(os, "getcwd")
47 self.god.stub_function(os, "system")
[all …]
Dsubcommand_unittest.py65 self.god.stub_function(subcommand.os.path, 'abspath')
66 self.god.stub_function(subcommand.os.path, 'exists')
67 self.god.stub_function(subcommand.os, 'mkdir')
84 self.god.stub_function(subcommand.os, 'fork')
102 self.god.stub_function(subcommand.os, 'pipe')
103 self.god.stub_function(subcommand.os, 'fork')
104 self.god.stub_function(subcommand.os, 'close')
105 self.god.stub_function(subcommand.os, 'write')
106 self.god.stub_function(six.moves.cPickle, 'dumps')
107 self.god.stub_function(subcommand.os, '_exit')
[all …]
Dfrontend_unittest.py25 self.god.stub_function(utils, 'send_email')
/external/autotest/client/bin/
Djob_unittest.py153 self.god.stub_function(os.path, 'exists')
154 self.god.stub_function(os.path, 'isdir')
155 self.god.stub_function(os, 'makedirs')
156 self.god.stub_function(os, 'mkdir')
157 self.god.stub_function(os, 'remove')
158 self.god.stub_function(shutil, 'rmtree')
159 self.god.stub_function(shutil, 'copyfile')
160 self.god.stub_function(job, 'open')
161 self.god.stub_function(utils, 'system')
162 self.god.stub_function(utils, 'drop_caches')
[all …]
Dpackage_unittest.py13 self.god.stub_function(os_dep, "command")
20 self.god.stub_function(os.path, "isfile")
21 self.god.stub_function(utils, "system_output")
22 self.god.stub_function(utils, "system")
104 self.god.stub_function(package, "info")
105 self.god.stub_function(utils, "system")
130 self.god.stub_function(utils, "system_output")
Dsetup_job_unittest.py134 self.god.stub_function(os.path, 'exists')
135 self.god.stub_function(os.path, 'isdir')
136 self.god.stub_function(os, 'makedirs')
137 self.god.stub_function(os, 'mkdir')
138 self.god.stub_function(os, 'remove')
139 self.god.stub_function(shutil, 'rmtree')
140 self.god.stub_function(shutil, 'copyfile')
141 self.god.stub_function(setup_job, 'open')
142 self.god.stub_function(utils, 'system')
Dpartition_unittest.py74 self.god.stub_function(os, 'popen')
111 self.god.stub_function(partition, 'partition')
Dfsinfo_unittest.py16 self.god.stub_function(fsinfo, 'open')
/external/autotest/server/cros/network/rf_switch/
Dscpi_unittest.py33 self.god.stub_function(socket, 'socket')
37 self.god.stub_function(sock, 'connect')
60 self.god.stub_function(self.mock_scpi.socket, 'send')
90 self.god.stub_function(self.mock_scpi.socket, 'send')
109 self.god.stub_function(self.mock_scpi.socket, 'send')
135 self.god.stub_function(self.mock_scpi.socket, 'send')
148 self.god.stub_function(self.mock_scpi.socket, 'send')
162 self.god.stub_function(self.mock_scpi.socket, 'send')
Drf_switch_unittest.py35 self.god.stub_function(self.mock_rf_switch.socket, 'send')
52 self.god.stub_function(self.mock_rf_switch.socket, 'send')
195 self.god.stub_function(self.mock_rf_switch.socket, 'send')
/external/autotest/client/common_lib/
Dtest_unittest.py66 self.god.stub_function(self.test, 'run_once_profiling')
67 self.god.stub_function(self.test, 'postprocess')
68 self.god.stub_function(self.test, 'process_failed_constraints')
73 self.god.stub_function(self.test, 'drop_caches_between_iterations')
74 self.god.stub_function(self.test, 'run_once')
75 self.god.stub_function(self.test, 'postprocess_iteration')
76 self.god.stub_function(self.test, 'analyze_perf_constraints')
95 self.god.stub_function(self.test, 'drop_caches_between_iterations')
96 self.god.stub_function(self.test, 'run_once')
121 self.god.stub_function(self.test, '_call_run_once')
[all …]
Dutils_unittest.py38 self.god.stub_function(utils, "open")
121 self.god.stub_function(utils, "open")
159 self.god.stub_function(utils, "open")
178 self.god.stub_function(utils, "open")
179 self.god.stub_function(os.path, "isdir")
180 self.god.stub_function(os.path, "exists")
280 self.god.stub_function(utils, "open")
281 self.god.stub_function(os.path, "isdir")
299 self.god.stub_function(test_file, "close")
452 self.god.stub_function(utils, "urlopen")
[all …]
/external/autotest/client/common_lib/hosts/
Dbase_classes_unittest.py29 self.god.stub_function(os.path, 'isdir')
30 self.god.stub_function(base_classes.Host, 'run')
/external/autotest/client/tests/wb_kupdate/
Dwb_kupdate_unittest.py48 self._god.stub_function(self._wbkupdate_obj,
75 self._god.stub_function(self._wbkupdate_obj,
/external/autotest/database/
Ddb_utils_unittest.py20 self.god.stub_function(self.manager, 'execute')
21 self.god.stub_function(self.manager, 'get_db_name')
Ddatabase_connection_unittest.py27 self.god.stub_function(time, 'sleep')
/external/autotest/server/hosts/
Dbase_classes_unittest.py19 self.god.stub_function(global_config.global_config,
28 self.god.stub_function(utils, "get_server_dir")
/external/autotest/tko/parsers/
Dversion_0_unittest.py22 self.god.stub_function(models.job, 'read_keyval')
23 self.god.stub_function(version_0.job, 'find_hostname')
24 self.god.stub_function(models.test, 'parse_host_keyval')
/external/autotest/tko/
Dutils_unittest.py47 self.god.stub_function(os.path, "exists")
/external/autotest/client/common_lib/test_utils/
Dmock.py409 def stub_function(self, namespace, symbol): member in mock_god