OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mock_afe
(Results
1 - 4
of
4
) sorted by null
/external/autotest/server/hosts/
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
...]
/external/autotest/server/cros/network/
rf_switch_controller_test.py
42
def testGetAPBoxes(self,
mock_afe
):
44
afe_instance =
mock_afe
()
56
def testGetClientBoxes(self,
mock_afe
):
58
afe_instance =
mock_afe
()
71
def testRfSwitchNotConnectedToAPBoxes(self,
mock_afe
):
73
afe_instance =
mock_afe
()
85
def testClientBoxWithInvalidLabels(self,
mock_afe
):
87
afe_instance =
mock_afe
()
rf_switch_utils_test.py
19
self.
mock_afe
= self.patcher1.start()
31
afe_instance = self.
mock_afe
()
45
afe_instance = self.
mock_afe
()
58
afe_instance = self.
mock_afe
()
68
afe_instance = self.
mock_afe
()
78
afe_instance = self.
mock_afe
()
/external/autotest/frontend/afe/
rpc_interface_unittest.py
427
mock_afe
= self.god.create_mock_class_obj(frontend_wrappers.RetryingAFE,
429
self.god.stub_with(frontend_wrappers, 'RetryingAFE',
mock_afe
)
448
mock_afe
= self.god.create_mock_class_obj(frontend_wrappers.RetryingAFE,
450
self.god.stub_with(frontend_wrappers, 'RetryingAFE',
mock_afe
)
[
all
...]
Completed in 366 milliseconds