Lines Matching refs:host_obj
103 host_obj = factory.create_host(
107 self.assertEqual(host_obj._host_cls_name, 'specified')
115 host_obj = factory.create_host(machine)
116 self.assertEqual(host_obj._host_cls_name, 'foo')
127 host_obj = factory.create_host(machine)
128 self.assertEqual(host_obj._host_cls_name, 'bar')
139 host_obj = factory.create_host(machine)
140 self.assertEqual(host_obj._host_cls_name, 'second')
147 host_obj = factory.create_host(machine)
148 self.assertEqual(host_obj._host_cls_name, 'cros_host')
155 host_obj = factory.create_host(machine)
156 self.assertEqual(host_obj._conn_cls_name, 'local')
164 host_obj = factory.create_host(machine)
165 self.assertEqual(host_obj._conn_cls_name, 'ssh')
173 host_obj = factory.create_host(machine, foo='bar')
174 self.assertEqual(host_obj._init_args['hostname'], 'localhost')
175 self.assertTrue('afe_host' in host_obj._init_args)
176 self.assertTrue('host_info_store' in host_obj._init_args)
177 self.assertEqual(host_obj._init_args['foo'], 'bar')
190 host_obj = factory.create_host(machine)
191 self.assertEqual(host_obj._init_args['user'], 'foo')
192 self.assertEqual(host_obj._init_args['password'], 'bar')
193 self.assertEqual(host_obj._init_args['port'], 1)
194 self.assertEqual(host_obj._init_args['ssh_verbosity_flag'], 'baz')
195 self.assertEqual(host_obj._init_args['ssh_options'], 'zip')
211 host_obj = factory.create_host(machine)
212 self.assertEqual(host_obj._init_args['user'], 'somebody')
213 self.assertEqual(host_obj._init_args['port'], 100)
214 self.assertEqual(host_obj._init_args['ssh_verbosity_flag'], 'verb')
215 self.assertEqual(host_obj._init_args['ssh_options'], 'options')