Searched refs:mock_afe (Results 1 – 6 of 6) sorted by relevance
/external/autotest/server/hosts/ |
D | afe_store_unittest.py | 19 self.mock_afe = mock.create_autospec(frontend.AFE, instance=True) 20 self.store = afe_store.AfeStore(self.hostname, afe=self.mock_afe) 38 self.mock_afe.get_hosts.return_value = [ 47 self.mock_afe.get_hosts.return_value = [] 54 self.mock_afe.get_hosts.return_value = [ 64 self.mock_afe.get_hosts.return_value = [ 68 self.assertEqual(self.mock_afe.run.call_count, 2) 75 self.mock_afe.run.assert_has_calls(expected_run_calls, 81 self.mock_afe.get_hosts.return_value = [ 83 self.mock_afe.run.side_effect = rpc_proxy.JSONRPCException('some error') [all …]
|
D | base_label_unittest.py | 192 mock_afe = mock.MagicMock() 206 mock_afe.run.has_calls('host_remove_labels', 211 mock_afe.run.has_calls('host_add_labels',
|
/external/autotest/server/cros/network/ |
D | rf_switch_controller_test.py | 42 def testGetAPBoxes(self, mock_afe): argument 44 afe_instance = mock_afe() 56 def testGetClientBoxes(self, mock_afe): argument 58 afe_instance = mock_afe() 71 def testRfSwitchNotConnectedToAPBoxes(self, mock_afe): argument 73 afe_instance = mock_afe() 85 def testClientBoxWithInvalidLabels(self, mock_afe): argument 87 afe_instance = mock_afe()
|
D | rf_switch_utils_test.py | 18 self.mock_afe = self.patcher1.start() 30 afe_instance = self.mock_afe() 44 afe_instance = self.mock_afe() 57 afe_instance = self.mock_afe() 67 afe_instance = self.mock_afe() 77 afe_instance = self.mock_afe()
|
D | rf_switch_client_box_test.py | 30 def testGetDevices(self, mock_host, mock_afe): argument 36 afe_instance = mock_afe() 46 def testNoDevicesInClientbox(self, mock_afe): argument 48 afe_instance = mock_afe()
|
/external/autotest/frontend/afe/ |
D | rpc_interface_unittest.py | 480 mock_afe = self.god.create_mock_class_obj( 482 self.god.stub_with(frontend_wrappers, 'RetryingAFE', mock_afe) 490 mock_afe = self.god.create_mock_class_obj( 492 self.god.stub_with(frontend_wrappers, 'RetryingAFE', mock_afe) 544 mock_afe = self.god.create_mock_class_obj(frontend_wrappers.RetryingAFE, 546 self.god.stub_with(frontend_wrappers, 'RetryingAFE', mock_afe) 592 mock_afe = self.god.create_mock_class_obj(frontend_wrappers.RetryingAFE, 594 self.god.stub_with(frontend_wrappers, 'RetryingAFE', mock_afe) 618 mock_afe = self.god.create_mock_class_obj(frontend_wrappers.RetryingAFE, 620 self.god.stub_with(frontend_wrappers, 'RetryingAFE', mock_afe) [all …]
|