Searched refs:AndReturn (Results 1 – 25 of 29) sorted by relevance
12
/external/autotest/frontend/afe/ |
D | moblab_rpc_interface_unittest.py | 51 utils.is_moblab().AndReturn(is_moblab) 63 mockFile.readline().AndReturn(line) 66 open(path).AndReturn(mockFile) 82 config_mock.get_sections().AndReturn(['section1', 'section2']) 84 config_mock.config.items('section1').AndReturn([('item1', 'value1'), 86 config_mock.config.items('section2').AndReturn([('item3', 'value3'), 107 lsbrelease_utils.is_moblab().AndReturn(True) 115 moblab_rpc_interface._CONFIG.shadow_file).AndReturn( 119 mockShadowFile.__enter__().AndReturn(mockShadowFileContents) 123 'w').AndReturn(mockShadowFile) [all …]
|
D | rpc_interface_unittest.py | 1428 dev_server.resolve(self._BUILD).AndReturn(self.dev_server) 1439 mox.IgnoreArg(), mox.IgnoreArg()).AndReturn(self.getter) 1468 ).AndReturn(to_return) 1494 image=self._BUILD, artifacts=['test_suites']).AndReturn(True) 1497 self._SUITE_NAME).AndReturn(None) 1513 image=self._BUILD, artifacts=['test_suites']).AndReturn(True) 1532 image=self._BUILD, artifacts=['test_suites']).AndReturn(True) 1535 self._SUITE_NAME).AndReturn('f') 1537 self.dev_server.url().AndReturn('mox_url') 1553 image=self._BUILD, artifacts=['test_suites']).AndReturn(True) [all …]
|
/external/autotest/site_utils/ |
D | server_manager_unittest.py | 108 ).AndReturn(True) 115 ).AndReturn(self.PRIMARY_DRONE) 118 ).AndReturn(self.DRONE_ROLE) 132 mox.IgnoreArg()).AndReturn(True) 134 ).AndReturn(True) 136 self.REPAIR_REQUIRED_DRONE.get_role_names().AndReturn( 141 ).AndReturn(self.DRONE_ROLE) 154 self.REPAIR_REQUIRED_DRONE.get_role_names().AndReturn( 173 ).AndReturn(True) 175 self.REPAIR_REQUIRED_DRONE.get_role_names().MultipleTimes().AndReturn( [all …]
|
D | pubsub_utils_unittest.py | 88 os.path.isfile(_TEST_CLOUD_SERVICE_ACCOUNT_FILE).AndReturn(False) 98 os.path.isfile(_TEST_CLOUD_SERVICE_ACCOUNT_FILE).AndReturn(True) 111 os.path.isfile(_TEST_CLOUD_SERVICE_ACCOUNT_FILE).AndReturn(True) 114 _TEST_CLOUD_SERVICE_ACCOUNT_FILE).AndReturn(credentials) 115 credentials.create_scoped_required().AndReturn(True) 116 credentials.create_scoped(pubsub_utils.PUBSUB_SCOPES).AndReturn( 135 os.path.isfile(_TEST_CLOUD_SERVICE_ACCOUNT_FILE).AndReturn(True) 138 _TEST_CLOUD_SERVICE_ACCOUNT_FILE).AndReturn(credentials) 139 credentials.create_scoped_required().AndReturn(True) 140 credentials.create_scoped(pubsub_utils.PUBSUB_SCOPES).AndReturn( [all …]
|
D | cloud_console_client_unittest.py | 37 utils.get_moblab_serial_number().AndReturn( 40 utils.get_moblab_id().AndReturn( 72 'gs://test_bucket/123-moblab').AndReturn(message) 76 'test topic', [message]).AndReturn(msg_ids) 89 utils.get_moblab_id().AndReturn( 100 'test topic', [message]).AndReturn(msg_ids) 110 utils.get_moblab_id().AndReturn( 122 'test topic', [message]).AndReturn(msg_ids)
|
D | test_runner_utils_unittest.py | 92 getter.get_control_file_list(suite_name=mox.IgnoreArg()).AndReturn([]) 115 getter.get_control_file_list(suite_name=mox.IgnoreArg()).AndReturn([]) 122 job.id, mox.IgnoreArg()).AndReturn(42) 228 ).AndReturn(mock_process_1) 229 mock_process_1.stdout.readline().AndReturn(b'') 230 mock_process_1.wait().AndReturn(0) 241 ).AndReturn(mock_process_2) 242 mock_process_2.stdout.readline().AndReturn(b'') 243 mock_process_2.wait().AndReturn(0) 323 ).AndReturn(fake_suite(suite_control_files, [remote])) [all …]
|
D | test_push_unittest.py | 52 urllib2.urlopen(mox.IgnoreArg()).AndReturn(response) 55 test_push.check_dut_image(mox.IgnoreArg(), mox.IgnoreArg()).AndReturn( 61 mox.IgnoreArg()).AndReturn((1)) 64 site_utils.get_test_views_from_tko(1, None).AndReturn(test_views)
|
D | job_directories_unittest.py | 128 id=job._id, finished=True).AndReturn( 132 job_id=job._id).AndReturn( 204 id=job._id, finished=True).AndReturn([]) 222 id=job._id, is_complete=True).AndReturn( 241 id=job._id, is_complete=True).AndReturn([])
|
D | gs_offloader_unittest.py | 91 utils.get_offload_gsuri().AndReturn(expected_gsuri) 99 cloud_console_client.is_cloud_notification_enabled().AndReturn(True) 102 mox.IsA(cloud_console_client.PubSubBasedClient)).AndReturn( 106 cloud_console_client.is_cloud_notification_enabled().AndReturn( 109 expected_gsuri, multiprocessing, delete_age, None).AndReturn( 565 mox.IgnoreArg(),mox.IgnoreArg()).AndReturn(None) 569 open(mox.IgnoreArg(), 'a').AndReturn(mock.MagicMock()) 583 os.path.isfile(mox.IgnoreArg()).AndReturn(marker_initially_exists) 588 queue_args[1])).AndReturn(command) 617 os.path.isfile(mox.IgnoreArg()).AndReturn(True) [all …]
|
/external/autotest/server/ |
D | lab_status_unittest.py | 127 urllib2.urlopen(mox.IgnoreArg()).AndReturn( 141 time.sleep(mox.IgnoreArg()).AndReturn(None) 142 urllib2.urlopen(mox.IgnoreArg()).AndReturn( 154 urllib2.urlopen(mox.IgnoreArg()).AndReturn( 156 time.sleep(mox.IgnoreArg()).AndReturn(None) 157 urllib2.urlopen(mox.IgnoreArg()).AndReturn( 172 time.sleep(mox.IgnoreArg()).AndReturn(None) 184 urllib2.urlopen(mox.IgnoreArg()).AndReturn( 186 time.sleep(mox.IgnoreArg()).InAnyOrder().AndReturn(None) 309 'SERVER', 'hostname').AndReturn('not-cautotest') [all …]
|
/external/autotest/client/common_lib/cros/ |
D | dev_server_unittest.py | 112 urllib2.urlopen(mox.StrContains(self.test_call)).AndReturn( 115 urllib2.urlopen(mox.StrContains(self.test_call)).AndReturn( 128 self.hostname, utils.RESTRICTED_SUBNETS).AndReturn( 134 timeout=mox.IgnoreArg()).AndReturn(to_return1) 137 timeout=mox.IgnoreArg()).AndReturn(to_return2) 150 urllib2.urlopen(mox.StrContains(self.test_call)).AndReturn( 162 urllib2.urlopen(mox.StrContains(self.test_call)).AndReturn( 175 urllib2.urlopen(mox.StrContains(self.test_call), data=None).AndReturn( 189 self.hostname, utils.RESTRICTED_SUBNETS).AndReturn( 194 timeout=mox.IgnoreArg()).AndReturn(to_return) [all …]
|
/external/autotest/server/cros/dynamic_suite/ |
D | control_file_getter_unittest.py | 42 suite_name='').AndReturn(self._FILES) 62 path).AndReturn(self._CONTENTS) 76 suite_name='').AndReturn(file_contents) 116 path).AndReturn(self._CONTENTS) 132 suite_name='').AndReturn(files) 134 path).AndReturn(self._CONTENTS) 150 suite_name='').AndReturn(files) 152 path).AndReturn(self._CONTENTS) 164 suite_name='').AndReturn(self._FILES)
|
D | job_status_unittest.py | 50 job=job.id).AndReturn(entries) 52 self.tko.get_job_test_statuses_from_db(job.id).AndReturn( 87 finished=True).AndReturn(yield_this) 140 status.is_good().InAnyOrder('recording').AndReturn(result)
|
D | suite_unittest.py | 128 processes=suite_common.get_process_limit()).AndReturn( 132 suite_name=suite_name).AndReturn(file_list) 135 file).InAnyOrder().AndReturn(data.string) 139 path=file).InAnyOrder().AndReturn(data) 153 processes=suite_common.get_process_limit()).AndReturn( 162 path=k).InAnyOrder().AndReturn(v) 167 suite_name=suite_name).AndReturn(suite_info) 286 test_args=None).AndReturn(self.files.values()) 358 job_mock.AndReturn(fake_job) 777 retry_for=self._FAKE_JOB_ID).AndReturn(fake_new_job) [all …]
|
/external/autotest/site_utils/rpm_control_system/ |
D | utils_unittest.py | 29 fake_file.__enter__().AndReturn(StringIO(fake_content)) 31 open('fake_file.csv').AndReturn(fake_file) 52 utils.load_servo_interface_mapping('fake_file').AndReturn( 56 os.path.getmtime(mox.IgnoreArg()).AndReturn(last_modified) 107 time.time().AndReturn(10) 108 time.time().AndReturn(25) 128 time.time().AndReturn(10) 129 time.time().AndReturn(25)
|
D | frontend_server_unittest.py | 42 allow_none=True).AndReturn(self.xmlrpc_mock) 60 NEW_STATE).AndReturn(True) 75 NEW_STATE).AndReturn(False) 90 NEW_STATE).AndReturn(True) 114 allow_none=True).AndReturn( 138 mox.IgnoreArg(), allow_none=True).MultipleTimes(3).AndReturn( 142 self.xmlrpc_mock.is_up().AndReturn(True) 144 self.frontend._rpm_info[DUT_HOSTNAME], NEW_STATE).AndReturn(True)
|
D | rpm_controller_unittest.py | 38 args=mox.IgnoreArg()).AndReturn(process) 54 rpm_controller.pexpect.spawn(mox.IgnoreArg()).AndReturn(self.ssh) 128 self.dli_ps.statuslist().AndReturn(test_status_list_final) 139 self.dli_ps.statuslist().AndReturn(test_status_list_final) 173 rpm_controller.pexpect.spawn(mox.IgnoreArg()).AndReturn(mock_ssh) 189 sut._login().AndReturn(mock_ssh) 191 sut._verify_state(self.PORT, 'ON', mock_ssh).AndReturn(True) 216 sut._login().AndReturn(mock_ssh) 236 sut._login().AndReturn(mock_ssh) 237 sut._enter_configuration_terminal(self.PORT, mock_ssh).AndReturn(True) [all …]
|
D | rpm_dispatcher_unittest.py | 43 rpm_dispatcher.xmlrpclib.ServerProxy(frontend_uri).AndReturn(
|
/external/autotest/server/cros/ |
D | host_lock_manager_unittest.py | 80 self.afe.get_hosts(hostname=self.HOST1).AndReturn(None) 89 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info) 98 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info) 107 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info) 117 self.afe.get_hosts(hostname=self.HOST1).AndReturn(host_info) 183 self.manager.LOCK).AndReturn(self.HOST1) 200 self.manager.UNLOCK).AndReturn(self.HOST1) 215 self.manager.LOCK).AndReturn(self.HOST1)
|
D | autoupdater_unittest.py | 119 self.host.run(command=cmd).AndReturn(result) 234 autoupdater.ChromiumOSUpdater._get_stateful_update_script().AndReturn( 250 autoupdater.ChromiumOSUpdater._get_stateful_update_script().AndReturn( 271 host.path_exists(local_script).AndReturn(True) 284 host.path_exists(local_script).AndReturn(False) 286 ignore_status=True).AndReturn(fake_result) 311 updater.host.get_release_version().AndReturn('1234.0.0') 324 updater.host.get_release_version().AndReturn('5775.0.0') 334 updater.host.get_release_version().AndReturn('5775.0.0')
|
/external/autotest/client/common_lib/cros/fake_device_server/ |
D | registration_tickets_unittest.py | 69 common_util.parse_serialized_json().AndReturn({'userEmail': 'me'}) 71 common_util.grab_header_field('Authorization').AndReturn( 98 common_util.parse_serialized_json().AndReturn(update_ticket) 113 common_util.parse_serialized_json().AndReturn(update_ticket) 124 common_util.parse_serialized_json().AndReturn(update_ticket)
|
D | resource_method_unittest.py | 38 common_util.parse_serialized_json().AndReturn(update_resource) 53 common_util.parse_serialized_json().AndReturn(update_resource) 64 common_util.parse_serialized_json().AndReturn(update_resource)
|
/external/autotest/client/cros/cellular/mbim_compliance/ |
D | mbim_channel_unittest.py | 64 args=mox.IgnoreArg()).AndReturn(mock_process) 71 mock_process.is_alive().MultipleTimes().AndReturn(True) 73 mock_process.is_alive().AndReturn(True) 267 self._mock_request_queue.qsize().AndReturn(1) 268 self._mock_request_queue.empty().AndReturn(False) 270 self._response_queue.put_nowait(response)).AndReturn(True) 280 self._mock_request_queue.qsize().AndReturn(1) 281 self._mock_request_queue.empty().MultipleTimes().AndReturn(False)
|
/external/autotest/scheduler/shard/ |
D | shard_client_unittest.py | 72 call.AndReturn({ 380 time.time().AndReturn(1516894000) 381 time.time().AndReturn(1516894000) 384 time.time().MultipleTimes().AndReturn(1516894000 + 60)
|
/external/autotest/site_utils/sponge_lib/ |
D | sponge_utils_functional_test.py | 104 models.test.parse_job_keyval(test.resultsdir).AndReturn(job_keyvals)
|
12