Lines Matching refs:factory

11 from autotest_lib.server.hosts import base_label_unittest, factory
75 self._orig_ssh_engine = factory.SSH_ENGINE
76 self._orig_types = factory.host_types
77 self._orig_dict = factory.OS_HOST_DICT
78 self._orig_cros_host = factory.cros_host.CrosHost
79 self._orig_local_host = factory.local_host.LocalHost
80 self._orig_ssh_host = factory.ssh_host.SSHHost
82 self.host_types = factory.host_types = []
83 self.os_host_dict = factory.OS_HOST_DICT = {}
84 factory.cros_host.CrosHost = _gen_mock_host('cros_host')
85 factory.local_host.LocalHost = _gen_mock_conn('local')
86 factory.ssh_host.SSHHost = _gen_mock_conn('ssh')
91 factory.SSH_ENGINE = self._orig_ssh_engine
92 factory.host_types = self._orig_types
93 factory.OS_HOST_DICT = self._orig_dict
94 factory.cros_host.CrosHost = self._orig_cros_host
95 factory.local_host.LocalHost = self._orig_local_host
96 factory.ssh_host.SSHHost = self._orig_ssh_host
102 host_obj = factory.create_host(
116 host_obj = factory.create_host(machine)
128 host_obj = factory.create_host(machine)
140 host_obj = factory.create_host(machine)
148 host_obj = factory.create_host(machine)
156 host_obj = factory.create_host(machine)
164 factory.SSH_ENGINE = 'raw_ssh'
166 host_obj = factory.create_host(machine)
173 factory.SSH_ENGINE = 'unsupported'
176 factory.create_host(machine)
184 host_obj = factory.create_host(machine, foo='bar')
194 factory.ssh_user = 'foo'
195 factory.ssh_pass = 'bar'
196 factory.ssh_port = 1
197 factory.ssh_verbosity_flag = 'baz'
198 factory.ssh_options = 'zip'
201 host_obj = factory.create_host(machine)
208 del factory.ssh_user
209 del factory.ssh_pass
210 del factory.ssh_port
211 del factory.ssh_verbosity_flag
212 del factory.ssh_options
222 host_obj = factory.create_host(machine)
235 self._orig_testbed = factory.testbed.TestBed
236 factory.testbed.TestBed = _gen_mock_host('testbed')
242 factory.testbed.TestBed = self._orig_testbed
250 testbed_obj = factory.create_testbed(machine, foo='bar')
260 factory.ssh_user = 'foo'
261 factory.ssh_pass = 'bar'
262 factory.ssh_port = 1
263 factory.ssh_verbosity_flag = 'baz'
264 factory.ssh_options = 'zip'
267 testbed_obj = factory.create_testbed(machine)
275 del factory.ssh_user
276 del factory.ssh_pass
277 del factory.ssh_port
278 del factory.ssh_verbosity_flag
279 del factory.ssh_options
289 testbed_obj = factory.create_testbed(machine)