Home
last modified time | relevance | path

Searched refs:assertEqual (Results 1 – 25 of 168) sorted by relevance

1234567

/tools/test/connectivity/acts/framework/tests/
Dacts_base_class_test.py75 self.assertEqual(actual_record.test_name, 'test_func')
95 self.assertEqual(actual_record.test_name, 'test_something')
127 self.assertEqual(len(passed_names), len(test_names))
147 self.assertEqual(actual_record.test_name, 'test_something')
166 self.assertEqual(actual_record.test_name, 'test_something')
175 self.assertEqual(bt_cls.results.summary_dict(), expected_summary)
190 self.assertEqual(actual_record.test_name, self.mock_test_name)
191 self.assertEqual(actual_record.details, MSG_EXPECTED_EXCEPTION)
201 self.assertEqual(bt_cls.results.summary_dict(), expected_summary)
215 self.assertEqual(actual_record.test_name, self.mock_test_name)
[all …]
Dacts_relay_controller_test.py81 self.assertEqual(
87 self.assertEqual(
93 self.assertEqual(
99 self.assertEqual(
105 self.assertEqual(
111 self.assertEqual(
117 self.assertEqual(
123 self.assertEqual(
137 self.assertEqual(
139 self.assertEqual(self.board.relay_previous_states[self.relay.position],
[all …]
/tools/asuite/atest/
Dresult_reporter_unittest.py319 self.assertEqual(runner, result_reporter.UNSUPPORTED_FLAG)
326 self.assertEqual(self.rr.run_stats.passed, 1)
327 self.assertEqual(self.rr.run_stats.failed, 0)
328 self.assertEqual(self.rr.run_stats.run_errors, False)
329 self.assertEqual(self.rr.failed_tests, [])
330 self.assertEqual(group.passed, 1)
331 self.assertEqual(group.failed, 0)
332 self.assertEqual(group.ignored, 0)
333 self.assertEqual(group.run_errors, False)
337 self.assertEqual(self.rr.run_stats.passed, 2)
[all …]
Dtest_finder_handler_unittest.py98 self.assertEqual(
103 self.assertEqual(
108 self.assertEqual(
113 self.assertEqual(
118 self.assertEqual(
122 self.assertEqual(
126 self.assertEqual(
131 self.assertEqual(
135 self.assertEqual(
139 self.assertEqual(
[all …]
Datest_utils_unittest.py68 self.assertEqual(want_list,
75 self.assertEqual(want_list,
147 self.assertEqual(original_str, converted_str)
154 self.assertEqual(green_highlight_string, converted_str)
161 self.assertEqual(green_no_highlight_string, converted_str)
178 self.assertEqual(capture_output.getvalue(), uncolored_string)
188 self.assertEqual(capture_output.getvalue(),
199 self.assertEqual(capture_output.getvalue(),
210 self.assertEqual(capture_output.getvalue(), green_highlight_wrap_string)
220 self.assertEqual(capture_output.getvalue(),
[all …]
/tools/acloud/public/
Dconfig_test.py122 self.assertEqual(cfg.service_account_name,
124 self.assertEqual(cfg.service_account_private_key_path,
126 self.assertEqual(cfg.service_account_json_private_key_path,
128 self.assertEqual(cfg.project, "fake-project")
129 self.assertEqual(cfg.zone, "us-central1-f")
130 self.assertEqual(cfg.machine_type, "n1-standard-1")
131 self.assertEqual(cfg.network, "default")
132 self.assertEqual(cfg.ssh_private_key_path, "/path/to/ssh/key")
133 self.assertEqual(cfg.storage_bucket_name, "fake_bucket")
134 self.assertEqual(cfg.orientation, "portrait")
[all …]
/tools/asuite/aidegen/lib/
Dsource_locator_unittest.py70 self.assertEqual(package_name, result_package_name)
78 self.assertEqual(package_name, result_package_name)
90 self.assertEqual(src_path, result_source)
95 self.assertEqual(src_path, None)
101 self.assertEqual(src_path, None)
111 self.assertEqual(r_dir, expect_result)
117 self.assertEqual(r_dir, expect_result)
123 self.assertEqual(r_dir, expect_result)
129 self.assertEqual(r_dir, expect_result)
145 self.assertEqual(module_data.r_java_paths, expect_result)
[all …]
Dcommon_util_unittest.py62 self.assertEqual((None, None),
69 self.assertEqual(
74 self.assertEqual(expected, common_util.get_related_paths(
76 self.assertEqual(('', unittest_constants.TEST_PATH),
84 self.assertEqual(('b/c', '/a/b/c'),
90 self.assertEqual(('b/c', '/a/b/c'),
116 self.assertEqual(expected, result)
124 self.assertEqual(expected, result)
132 self.assertEqual(expected, result)
134 self.assertEqual(expected, result)
[all …]
Dproject_config_unittest.py50 self.assertEqual(
52 self.assertEqual(
55 self.assertEqual(
58 self.assertEqual(
65 self.assertEqual(config.ide_name, constant.IDE_INTELLIJ)
67 self.assertEqual(config.depth, 0)
70 self.assertEqual(config.targets, ['a'])
72 self.assertEqual(config.ide_installed_path, None)
74 self.assertEqual(config.exclude_paths, None)
76 self.assertEqual(config_obj.ide_name, constant.IDE_INTELLIJ)
[all …]
Dclion_project_file_gen_unittest.py114 self.assertEqual(content, expected)
135 self.assertEqual(content, expected)
150 self.assertEqual(content, expected)
170 self.assertEqual(content, expected)
185 self.assertEqual(content, expected)
196 self.assertEqual(result, None)
215 self.assertEqual(ret, expected)
236 self.assertEqual(content, '')
248 self.assertEqual(content, '')
260 self.assertEqual(content, '')
[all …]
Dide_util_unittest.py191 self.assertEqual(1, len(ide_obj._get_config_root_paths()))
268 self.assertEqual(ide.config_folders, ['a'])
311 self.assertEqual(
313 self.assertEqual(
324 self.assertEqual(None, ide_obj._get_application_path(test_path))
327 self.assertEqual(None, ide_obj._get_application_path(test_path))
330 self.assertEqual(None, ide_obj._get_application_path(test_path))
333 self.assertEqual(None, ide_obj._get_application_path(test_path))
336 self.assertEqual(None, ide_obj._get_application_path(test_path))
339 self.assertEqual('.IdeaIC303', ide_obj._get_application_path(test_path))
[all …]
/tools/acloud/create/
Davd_spec_test.py62 self.assertEqual(self.AvdSpec._local_image_artifact,
73 self.assertEqual(self.AvdSpec._local_image_dir, expected_image_dir)
80 self.assertEqual(self.AvdSpec._local_image_dir, "test_environ")
81 self.assertEqual(self.AvdSpec.local_image_artifact, expected_image_artifact)
91 self.assertEqual(self.AvdSpec._local_image_dir, expected_image_dir)
101 self.assertEqual(self.AvdSpec._local_image_dir, "test_environ")
109 self.assertEqual(self.AvdSpec._image_source, constants.IMAGE_SRC_REMOTE)
110 self.assertEqual(self.AvdSpec._local_image_dir, None)
118 self.assertEqual(self.AvdSpec._image_source, constants.IMAGE_SRC_LOCAL)
119 self.assertEqual(self.AvdSpec._local_image_artifact,
[all …]
/tools/acloud/list/
Dinstance_test.py80 self.assertEqual(constants.LOCAL_INS_NAME + "-2", local_instance.name)
81 self.assertEqual(True, local_instance.islocal)
82 self.assertEqual("1080x1920 (480)", local_instance.display)
87 self.assertEqual(expected_full_name, local_instance.fullname)
88 self.assertEqual(6521, local_instance.adb_port)
89 self.assertEqual(6445, local_instance.vnc_port)
100 self.assertEqual(inst.name, "local-goldfish-instance-1")
101 self.assertEqual(inst.avd_type, constants.TYPE_GF)
102 self.assertEqual(inst.adb_port, 5555)
104 self.assertEqual(inst.console_port, 5554)
[all …]
/tools/tradefederation/core/atest/
Dtest_finder_handler_unittest.py94 self.assertEqual(
99 self.assertEqual(
104 self.assertEqual(
109 self.assertEqual(
114 self.assertEqual(
118 self.assertEqual(
122 self.assertEqual(
127 self.assertEqual(
131 self.assertEqual(
135 self.assertEqual(
[all …]
Datest_utils_unittest.py63 self.assertEqual(want_list,
70 self.assertEqual(want_list,
142 self.assertEqual(original_str, converted_str)
149 self.assertEqual(green_highlight_string, converted_str)
156 self.assertEqual(green_no_highlight_string, converted_str)
173 self.assertEqual(capture_output.getvalue(), uncolored_string)
183 self.assertEqual(capture_output.getvalue(),
194 self.assertEqual(capture_output.getvalue(),
205 self.assertEqual(capture_output.getvalue(), green_highlight_wrap_string)
215 self.assertEqual(capture_output.getvalue(),
[all …]
/tools/test/connectivity/acts/framework/tests/metrics/loggers/
Dbounded_metrics_test.py66 self.assertEqual(result.test_class, 'Class')
67 self.assertEqual(result.test_method, 'test')
68 self.assertEqual(result.value, 123)
69 self.assertEqual(result.lower_limit.value, 1)
70 self.assertEqual(result.upper_limit.value, 2)
71 self.assertEqual(result.metric, 'towels_metric')
72 self.assertEqual(result.unit, 'towels')
88 self.assertEqual(result.test_class, 'Class')
90 self.assertEqual(result.test_method, 'test')
91 self.assertEqual(result.value, 123)
[all …]
Dblackbox_test.py52 self.assertEqual(logger.metric_name, metric_name)
61 self.assertEqual(logger.metric_key, metric_key)
87 self.assertEqual(result.test_identifier, 'Class#test')
88 self.assertEqual(result.metric_key,
90 self.assertEqual(result.metric_value, logger.metric_value)
107 self.assertEqual(result.metric_value, expected_result)
126 self.assertEqual(result.metric_key, expected_metric_key)
195 self.assertEqual(len(args_list), 1)
197 self.assertEqual(metric.name, 'blackbox_my_metric')
198 self.assertEqual(metric.data.test_identifier, 'MyTest#test_case')
[all …]
/tools/acloud/internal/lib/
Dgcompute_client_test.py121 self.assertEqual(status, "GOOD")
132 self.assertEqual(status, "GOOD")
189 self.assertEqual(result, {"name": self.IMAGE})
203 self.assertEqual(result, {"name": self.IMAGE_OTHER})
430 self.assertEqual(mock_wait.call_count, 2)
431 self.assertEqual(error_msgs, [])
432 self.assertEqual(failed, [])
433 self.assertEqual(set(deleted), set(fake_images))
456 self.assertEqual(images, [image_1, image_2])
472 self.assertEqual(images, [image])
[all …]
Dcvd_runtime_config_test.py93 self.assertEqual(fake_cvd_runtime_config._config_dict, expected_dict)
94 self.assertEqual(fake_cvd_runtime_config.enable_webrtc, None)
95 self.assertEqual(fake_cvd_runtime_config.config_path,
97 self.assertEqual(fake_cvd_runtime_config.instance_id, "2")
104 self.assertEqual(fake_cvd_runtime_config_webrtc.config_path, None)
105 self.assertEqual(fake_cvd_runtime_config_webrtc.instance_id, "1")
106 self.assertEqual(fake_cvd_runtime_config_webrtc.enable_webrtc, True)
107 self.assertEqual(fake_cvd_runtime_config_webrtc.x_res, 720)
108 self.assertEqual(fake_cvd_runtime_config_webrtc.y_res, 1280)
109 self.assertEqual(fake_cvd_runtime_config_webrtc.dpi, 320)
[all …]
Dutils_test.py159 self.assertEqual(subprocess.check_call.call_count, 0) #pylint: disable=no-member
170 self.assertEqual(subprocess.check_call.call_count, 1) #pylint: disable=no-member
188 self.assertEqual(subprocess.check_output.call_count, 1) #pylint: disable=no-member
207 self.assertEqual(1 + num_retry, sentinel.alert.call_count)
226 self.assertEqual(1 + num_retry, sentinel.alert.call_count)
247 self.assertEqual(1 + num_retry, sentinel.alert.call_count)
265 self.assertEqual(utils.GetAnswerFromList(answer_list),
267 self.assertEqual(utils.GetAnswerFromList(answer_list),
269 self.assertEqual(utils.GetAnswerFromList(answer_list),
271 self.assertEqual(utils.GetAnswerFromList(answer_list,
[all …]
/tools/asuite/aidegen/sdk/
Dandroid_sdk_unittest.py40 self.assertEqual(self.sdk.max_api_level, 0)
41 self.assertEqual(self.sdk.max_code_name, None)
42 self.assertEqual(self.sdk.platform_mapping, {})
43 self.assertEqual(self.sdk.android_sdk_path, None)
58 self.assertEqual(api_level, 29)
71 self.assertEqual(api_level, 29)
87 self.assertEqual(code_name, '29')
100 self.assertEqual(code_name, 'Q')
107 self.assertEqual(self.sdk._parse_api_info(''), expected_result)
112 self.assertEqual(self.sdk._parse_api_info(''), expected_result)
[all …]
/tools/test/connectivity/acts/framework/tests/libs/proc/
Dprocess_test.py113 self.assertEqual(process._listening_thread.target, process._exec_loop)
138 self.assertEqual(process._kill_process.called, True)
162 self.assertEqual(verifier.passed, True)
173 self.assertEqual(mocked_thread.join.called, True)
187 self.assertEqual(process._listening_thread, None)
198 self.assertEqual(mocked_thread.join.called, True)
212 self.assertEqual(process._redirection_thread, None)
246 self.assertEqual(verifier.passed, True)
256 self.assertEqual(process.wait.called, True)
274 self.assertEqual(received_list[0], 'a')
[all …]
/tools/repohooks/rh/
Dhooks_unittest.py151 self.assertEqual(output_args, exp_args)
161 self.assertEqual(self.replacer.get('PREUPLOAD_COMMIT_MESSAGE'),
166 self.assertEqual(self.replacer.get('PREUPLOAD_COMMIT'),
171 self.assertEqual(self.replacer.get('PREUPLOAD_FILES'),
177 self.assertEqual(self.replacer.get('REPO_ROOT'), m.return_value)
182 self.assertEqual(self.replacer.get('BUILD_OS'), m.return_value)
193 self.assertEqual(args, rh.hooks.HookOptions.expand_vars(args))
198 self.assertEqual(exp_args, rh.hooks.HookOptions.expand_vars(args))
205 self.assertEqual(options.args(), args)
206 self.assertEqual(options.args(default_args=['moo']), args)
[all …]
/tools/treble/split/
Dmanifest_split_test.py42 self.assertEqual(remove_projects, set(['remove1', 'remove2']))
43 self.assertEqual(add_projects, set(['add1', 'add2']))
52 self.assertEqual(
76 self.assertEqual(
82 self.assertEqual(
90 self.assertEqual(
99 self.assertEqual(
130 self.assertEqual(inputs, {'path/to/input1', 'path/to/input2'})
142 self.assertEqual(
176 self.assertEqual(
[all …]
/tools/treble/build/sandbox/
Dconfig_test.py139 self.assertEqual(
144 self.assertEqual(
149 self.assertEqual(
154 self.assertEqual(
165 self.assertEqual(
171 self.assertEqual(
176 self.assertEqual(
190 self.assertEqual(build_goals, ['droid', 'always'])
196 self.assertEqual(build_goals, ['droid', 'always'])
202 self.assertEqual(build_goals, ['droid', 'always'])
[all …]

1234567