Searched refs:AndReturn (Results 1 – 25 of 40) 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 …]
|
/external/autotest/site_utils/ |
D | server_manager_unittest.py | 108 ).AndReturn(True) 115 ).AndReturn(self.BACKUP_DRONE) 118 ).AndReturn(self.DRONE_ROLE) 132 mox.IgnoreArg()).AndReturn(True) 134 ).AndReturn(True) 136 self.BACKUP_DRONE.get_role_names().AndReturn( 141 ).AndReturn(self.DRONE_ROLE) 154 self.BACKUP_DRONE.get_role_names().AndReturn( 172 ).AndReturn(True) 174 self.BACKUP_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 | test_push_unittest.py | 49 urllib2.urlopen(mox.IgnoreArg()).AndReturn(response) 52 test_push.get_default_build(mox.IgnoreArg(), mox.IgnoreArg()).AndReturn( 54 test_push.get_default_build(mox.IgnoreArg(), mox.IgnoreArg()).AndReturn( 58 test_push.check_dut_image(mox.IgnoreArg(), mox.IgnoreArg()).AndReturn( 64 mox.IgnoreArg(), mox.IgnoreArg()).AndReturn((1)) 67 site_utils.get_test_views_from_tko(1, None).AndReturn(test_views)
|
D | test_runner_utils_unittest.py | 127 ).AndReturn(mock_process_1) 128 mock_process_1.stdout.readline().AndReturn(b'') 129 mock_process_1.wait().AndReturn(0) 140 ).AndReturn(mock_process_2) 141 mock_process_2.stdout.readline().AndReturn(b'') 142 mock_process_2.wait().AndReturn(0) 197 ).AndReturn(fake_suite(suite_control_files, [remote])) 216 False, {}).AndReturn((0, '/fake/dir'))
|
D | cloud_console_client_unittest.py | 37 utils.get_default_interface_mac_address().AndReturn( 39 utils.get_moblab_id().AndReturn( 73 'gs://test_bucket/123-moblab').AndReturn(message) 77 'test topic', [message]).AndReturn(msg_ids)
|
/external/autotest/site_utils/suite_scheduler/ |
D | build_event_unittest.py | 64 self.mv.GetCheckpoint().AndReturn(head) 65 self.mv.ManifestsSinceRev(head, board).AndReturn(branch_manifests) 83 self.mv.GetCheckpoint().AndReturn(initial_hash) 123 self.mv.GetCheckpoint().AndReturn(initial_hash) 124 self.mv.AnyManifestsSinceRev(initial_hash).AndReturn(False) 125 self.mv.GetCheckpoint().AndReturn(expected_hash) 126 self.mv.AnyManifestsSinceRev(expected_hash).AndReturn(True) 143 self.mv.GetCheckpoint().AndReturn(initial_hash) 146 self.mv.AnyManifestsSinceRev(initial_hash).AndReturn(True) 148 self.BOARD).AndReturn(branch_manifests) [all …]
|
D | timed_event_unittest.py | 49 timed_event.TimedEvent._now().MultipleTimes().AndReturn(fake_now) 58 timed_event.TimedEvent._now().MultipleTimes().AndReturn(fake_now) 65 timed_event.TimedEvent._now().MultipleTimes().AndReturn(self.BaseTime()) 75 timed_event.TimedEvent._now().AndReturn(init_now) 76 timed_event.TimedEvent._now().MultipleTimes().AndReturn(fire_now) 86 timed_event.TimedEvent._now().MultipleTimes().AndReturn(fake_now) 95 timed_event.TimedEvent._now().MultipleTimes().AndReturn(fake_now) 106 timed_event.TimedEvent._now().MultipleTimes().AndReturn(fake_now) 116 self.mv.ManifestsSinceDate(since_date, board).AndReturn( 118 timed_event.TimedEvent._now().MultipleTimes().AndReturn(self.BaseTime()) [all …]
|
D | driver_unittest.py | 60 mox.IgnoreArg(), self.mv).AndReturn(mock_nightly) 62 mox.IgnoreArg(), self.mv).AndReturn(mock_weekly) 64 mox.IgnoreArg(), self.mv).AndReturn(mock_new_build) 81 board_lists=mox.IgnoreArg()).InAnyOrder().AndReturn( 85 board_lists=mox.IgnoreArg()).InAnyOrder().AndReturn( 96 self.afe.get_labels(name__startswith=prefix).AndReturn(mocks) 110 event.ShouldHandle().InAnyOrder(group).AndReturn(True) 114 board).InAnyOrder(group).AndReturn(None) 116 board).InAnyOrder(group).AndReturn(bbs) 131 event.ShouldHandle().InAnyOrder(group).AndReturn(True) [all …]
|
D | deduping_scheduler_unittest.py | 75 min_rpc_timeout=mox.IgnoreArg()).AndReturn([]) 94 min_rpc_timeout=mox.IgnoreArg()).AndReturn(7) 114 min_rpc_timeout=mox.IgnoreArg()).AndReturn(['42']) 159 min_rpc_timeout=mox.IgnoreArg()).AndReturn(7) 201 min_rpc_timeout=mox.IgnoreArg()).AndReturn([]) 218 min_rpc_timeout=mox.IgnoreArg()).AndReturn(None) 239 min_rpc_timeout=mox.IgnoreArg()).AndReturn([]) 289 min_rpc_timeout=mox.IgnoreArg()).AndReturn([]) 292 site_utils.get_sheriffs(lab_only=True).AndReturn(['deputy1', 'deputy2']) 312 reporting.Reporter._check_tracker().AndReturn(True) [all …]
|
D | manifest_versions_unittest.py | 126 mox.IgnoreArg()).AndReturn(to_return) 136 mox.StrContains(rev))).MultipleTimes().AndReturn( 149 mox.StrContains(rev))).MultipleTimes().AndReturn(' ') 169 mox.StrContains('log')).MultipleTimes().AndReturn( 186 manifest_versions._SystemOutput(mox.StrContains('log')).AndReturn([]) 224 mox.StrContains('log')).MultipleTimes().AndReturn(manifest)
|
/external/autotest/client/common_lib/cros/ |
D | autoupdater_unittest.py | 47 updater.host.get_release_version().MultipleTimes().AndReturn( 56 updater.host.get_release_version().MultipleTimes().AndReturn( 65 updater.host.get_release_version().MultipleTimes().AndReturn('1111.0.0') 73 updater.host.get_release_version().MultipleTimes().AndReturn( 98 updater.host.get_release_version().MultipleTimes().AndReturn( 107 updater.host.get_release_version().MultipleTimes().AndReturn( 116 updater.host.get_release_version().MultipleTimes().AndReturn('2222.0.0') 124 updater.host.get_release_version().MultipleTimes().AndReturn( 149 updater.host.get_release_version().MultipleTimes().AndReturn( 158 updater.host.get_release_version().MultipleTimes().AndReturn( [all …]
|
D | dev_server_unittest.py | 108 urllib2.urlopen(mox.StrContains(self.test_call)).AndReturn( 120 urllib2.urlopen(mox.StrContains(self.test_call)).AndReturn( 133 urllib2.urlopen(mox.StrContains(self.test_call), data=None).AndReturn( 147 self.hostname, utils.RESTRICTED_SUBNETS).AndReturn( 152 timeout=mox.IgnoreArg()).AndReturn(to_return) 164 self.hostname, utils.RESTRICTED_SUBNETS).AndReturn( 169 timeout=mox.IgnoreArg()).AndReturn(to_return) 182 self.hostname, utils.RESTRICTED_SUBNETS).AndReturn( 187 timeout=mox.IgnoreArg()).AndReturn(to_return) 211 self.hostname, utils.RESTRICTED_SUBNETS).AndReturn( [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/site_utils/rpm_control_system/ |
D | rpm_controller_unittest.py | 39 args=mox.IgnoreArg()).AndReturn(process) 55 rpm_controller.pexpect.spawn(mox.IgnoreArg()).AndReturn(self.ssh) 127 self.dli_ps.statuslist().AndReturn(self.test_status_list_initial) 129 self.dli_ps.statuslist().AndReturn(test_status_list_final) 139 self.dli_ps.statuslist().AndReturn(self.test_status_list_initial) 141 self.dli_ps.statuslist().AndReturn(test_status_list_final) 191 mox.IgnoreArg(), mox.IgnoreArg()).AndReturn(self.STREAM_WELCOME) 194 mox.IgnoreArg(), mox.IgnoreArg()).AndReturn(self.STREAM_PWD) 197 mox.IgnoreArg(), mox.IgnoreArg()).AndReturn(self.STREAM_DEVICE) 215 mox.IgnoreArg(), mox.IgnoreArg()).AndReturn(self.STREAM_CONFIG) [all …]
|
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)
|
/external/autotest/site_utils/autoupdate/ |
D | full_release_test_test.py | 108 AndReturn('chromeos_R%s-%s_R%s-%s_%s_delta_dev.bin' % ( 114 AndReturn('chromeos_R%s-%s_%s_full_dev.bin' % ( 141 AndReturn('chromeos_R%s-%s_R%s-%s_%s_delta_dev.bin' % ( 147 AndReturn('chromeos_R%s-%s_%s_full_dev.bin' % ( 175 AndReturn('chromeos_R%s-%s_R%s-%s_%s_delta_dev.bin' % ( 181 AndReturn('chromeos_R%s-%s_%s_full_dev.bin' % ( 208 AndReturn('chromeos_R%s-%s_R%s-%s_%s_delta_dev.bin' % ( 214 AndReturn('chromeos_R%s-%s_%s_full_dev.bin' % ( 231 AndReturn('NO DELTAS FOR YOU') 237 AndReturn('chromeos_R%s-%s_R%s-%s_%s_delta_dev.bin' % ( [all …]
|
/external/autotest/server/hosts/ |
D | testbed_unittest.py | 34 host.get_device_aliases().MultipleTimes().AndReturn([BOARD_1]) 36 testbed_1.get_adb_devices().AndReturn(dict(zip(serials, hosts))) 58 host.get_device_aliases().MultipleTimes().AndReturn([BOARD_1]) 60 testbed_1.get_adb_devices().AndReturn(dict(zip(serials, hosts))) 80 host.get_device_aliases().MultipleTimes().AndReturn([BOARD_1]) 82 testbed_1.get_adb_devices().AndReturn(dict(zip(serials, hosts))) 104 host.get_device_aliases().MultipleTimes().AndReturn([BOARD_1]) 106 testbed_1.get_adb_devices().AndReturn(dict(zip(serials, hosts))) 126 hosts[i].get_device_aliases().MultipleTimes().AndReturn([BOARD_1]) 129 hosts[i].get_device_aliases().MultipleTimes().AndReturn([BOARD_2]) [all …]
|
/external/autotest/server/cros/dynamic_suite/ |
D | control_file_getter_unittest.py | 44 suite_name='').AndReturn(self._FILES) 64 path).AndReturn(self._CONTENTS) 78 suite_name='').AndReturn(file_contents) 118 path).AndReturn(self._CONTENTS) 134 suite_name='').AndReturn(files) 136 path).AndReturn(self._CONTENTS) 152 suite_name='').AndReturn(files) 154 path).AndReturn(self._CONTENTS) 166 suite_name='').AndReturn(self._FILES)
|
D | reporting_unittest.py | 104 client.create_issue(mox.IgnoreArg()).AndReturn( 106 reporting.Reporter._find_issue_by_marker(mox.IgnoreArg()).AndReturn( 108 reporting.TestBug.summary().AndReturn('') 135 reporting.Reporter._find_issue_by_marker(mox.IgnoreArg()).AndReturn( 138 reporting.TestBug.summary().AndReturn('') 170 reporting.Reporter._find_issue_by_marker(mox.IgnoreArg()).AndReturn( 172 reporting.TestBug.summary().AndReturn('Summary') 177 mock_host.create_issue(mox.IgnoreArg()).AndReturn( 194 reporting.Reporter._find_issue_by_marker(mox.IgnoreArg()).AndReturn( 200 mock_host.create_issue(mox.IgnoreArg()).AndReturn( [all …]
|
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) 133 self.afe.get_jobs(parent_job_id=parent_job_id).AndReturn(jobs[:6]) 144 finished=True).AndReturn(yield_this) 198 status.is_good().InAnyOrder('recording').AndReturn(result)
|
/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)
|
/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)
|
/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)
|
12