Home
last modified time | relevance | path

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

123

/test/vts/utils/python/common/
Dcmd_result_test.py49 self.assertEqual(self.res_single_no_error.stdout, 'stdout')
50 self.assertEqual(self.res_single_no_error.stderr, '')
51 self.assertEqual(self.res_single_no_error.returncode, 0)
52 self.assertEqual(self.res_single_no_error.stdouts[-1], 'stdout')
53 self.assertEqual(self.res_single_no_error.stderrs[-1], '')
54 self.assertEqual(self.res_single_no_error.returncodes[-1], 0)
58 self.assertEqual(self.res_multiple_no_error.stdout, 'stdout2')
59 self.assertEqual(self.res_multiple_no_error.stderr, '')
60 self.assertEqual(self.res_multiple_no_error.returncode, 0)
61 self.assertEqual(self.res_multiple_no_error.stdouts, ['stdout1', 'stdout2'])
[all …]
Dtimeout_utils_test.py40 self.assertEqual(self.count, 1)
50 self.assertEqual(self.count, 0)
64 self.assertEqual(self.count, 0)
74 self.assertEqual(self.count, 1)
/test/vts/utils/python/coverage/
Dgcno_parser_test.py62 self.assertEqual(name, summary.name)
63 self.assertEqual(ident, summary.ident)
64 self.assertEqual(src_file_name, summary.src_file_name)
65 self.assertEqual(first_line_number, summary.first_line_number)
78 self.assertEqual(len(func.blocks), n_blocks)
80 self.assertEqual(func.blocks[i].flag, 3 * i)
81 self.assertEqual(func.blocks[i].index, i)
106 self.assertEqual(
109 self.assertEqual(
111 self.assertEqual(func.blocks[i].entry_arcs[0].src_block.index,
[all …]
Dsancov_parser_test.py62 self.assertEqual(32, p._bitness)
63 self.assertEqual(values, s)
75 self.assertEqual(64, p._bitness)
76 self.assertEqual(values, s)
83 self.assertEqual(32, p.GetBitness())
90 self.assertEqual(64, p.GetBitness())
96 self.assertEqual(self.GOLDEN_EXPECTED_BITNESS, bitness)
97 self.assertEqual(self.GOLDEN_EXPECTED_OFFSETS, offsets)
Dfunction_summary_test.py62 self.assertEqual(self.count, arc.count)
63 self.assertEqual(self.count, arc.src_block.count)
64 self.assertEqual(self.count, arc.dst_block.count)
78 self.assertEqual(self.count, arc.count)
79 self.assertEqual(self.count, arc.src_block.count)
80 self.assertEqual(self.count, arc.dst_block.count)
Dparser_test.py148 self.assertEqual(p.format, '<')
157 self.assertEqual(p.format, '>')
167 self.assertEqual(p.ReadInt(), integer)
181 self.assertEqual(number, p.ReadInt64())
186 self.assertEqual(number, p.ReadInt64())
196 self.assertEqual(p.ReadString(), test_string)
/test/vts/utils/python/reporting/
Dreport_file_utils_test.py55 self.assertEqual(_report_file_util._flatten_source_dir, False)
56 self.assertEqual(_report_file_util._use_destination_date_dir, False)
57 self.assertEqual(_report_file_util._source_dir, None)
58 self.assertEqual(_report_file_util._destination_dir, None)
59 self.assertEqual(_report_file_util._url_prefix, None)
69 self.assertEqual(_report_file_util._flatten_source_dir, True)
70 self.assertEqual(_report_file_util._use_destination_date_dir, True)
71 self.assertEqual(_report_file_util._source_dir, None)
72 self.assertEqual(_report_file_util._destination_dir, "vts-log")
73 self.assertEqual(_report_file_util._url_prefix,
[all …]
/test/vti/test_serving/gae/webapp/src/utils/
Dmodel_util_test.py68 self.assertEqual(1, len(jobs))
83 self.assertEqual(1, parent_schedule.error_count)
84 self.assertEqual(1, parent_from_db.error_count)
95 self.assertEqual(1 + num, parent_schedule.error_count)
96 self.assertEqual(1 + num, parent_from_db.error_count)
108 self.assertEqual(2 + num, len(jobs))
113 self.assertEqual(1, len(ready_jobs))
119 self.assertEqual(1 + num, parent_schedule.error_count)
120 self.assertEqual(1 + num, parent_from_db.error_count)
125 self.assertEqual(2 + num, parent_schedule.error_count)
[all …]
/test/vti/test_serving/gae/webapp/src/endpoint/
Dbuild_info_test.py40 self.assertEqual(len(builds), 0)
52 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
54 self.assertEqual(len(builds), 1)
65 self.assertEqual(len(builds), 0)
77 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
79 self.assertEqual(len(builds), 1)
91 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
93 self.assertEqual(len(builds), 1)
104 self.assertEqual(len(builds), 0)
117 self.assertEqual(response.return_code, model.ReturnCodeMessage.SUCCESS)
[all …]
Djob_queue_test.py94 self.assertEqual(response.return_code,
96 self.assertEqual(len(response.jobs), 1)
99 self.assertEqual(
103 self.assertEqual(
108 self.assertEqual(device.scheduling_status,
122 self.assertEqual(response.return_code,
126 self.assertEqual(len(jobs), 1)
127 self.assertEqual(jobs[0].status, Status.JOB_STATUS_DICT["leased"])
142 self.assertEqual(response.return_code,
146 self.assertEqual(len(jobs), 1)
[all …]
Dlab_info_test.py71 self.assertEqual(len(devices), 1)
72 self.assertEqual(devices[0].product, product)
82 self.assertEqual(len(devices), 1)
84 self.assertEqual(devices[0].product, "error")
126 self.assertEqual(len(devices), 1)
129 self.assertEqual(devices[0].product, "error")
132 self.assertEqual(set(devices[0].device_equipment),
Dhost_info_test.py58 self.assertEqual(len(devices), 1)
61 self.assertEqual(devices[0].product, "error")
75 self.assertEqual(len(devices), 1)
77 self.assertEqual(devices[0].product, product)
87 self.assertEqual(len(devices), 1)
89 self.assertEqual(devices[0].product, product)
Dendpoint_base_test.py51 self.assertEqual(set(attrs), set(result))
59 self.assertEqual(set(attrs), set(result))
123 self.assertEqual(len(result), 1)
144 self.assertEqual(len(result), 100)
165 self.assertEqual(len(result), 60)
180 self.assertEqual(len(result), 40)
211 self.assertEqual(len(result), 50)
233 self.assertEqual(len(result), 100)
250 self.assertEqual(len(result), 100)
/test/vts/utils/python/instrumentation/
Dtest_framework_instrumentation_test.py55 self.assertEqual(event.status, 2)
58 self.assertEqual(event.status, 2)
64 self.assertEqual(event.status, 1)
66 self.assertEqual(event.status, 2)
72 self.assertEqual(event.status, 1)
74 self.assertEqual(event.status, 2)
90 self.assertEqual(event.status, 1)
94 self.assertEqual(event.status, 3)
101 self.assertEqual(event.status, 3)
109 self.assertEqual(event.status, 1)
[all …]
/test/vti/test_serving/gae/webapp/src/scheduler/
Dschedule_worker_test.py70 self.assertEqual(1, len(model.JobModel.query().fetch()))
76 self.assertEqual(Status.DEVICE_SCHEDULING_STATUS_DICT["reserved"],
113 self.assertEqual(schedules[0].test_name,
160 self.assertEqual(jobs[0].test_name, high_priority_schedule_test_name)
163 self.assertEqual(medium_original_priority_value - 1,
173 self.assertEqual(jobs[0].test_name, high_priority_schedule_test_name)
176 self.assertEqual(medium_original_priority_value - 2,
191 self.assertEqual(jobs[0].test_name, medium_priority_schedule_test_name)
194 self.assertEqual(schedule_medium.priority_value,
296 self.assertEqual(schedule1_l_original_priority_value - 1,
[all …]
/test/vts/runners/host/tcp_server/
Dcallback_server_test.py166 self.assertEqual(func_id, '0')
176 self.assertEqual(self._counter, prev_value + 1)
179 self.assertEqual(response_message.response_code, SysMsg_pb2.SUCCESS)
197 self.assertEqual(func_id, found_func_id)
203 self.assertEqual(self._counter, prev_value + 1)
206 self.assertEqual(response_message.response_code, SysMsg_pb2.SUCCESS)
220 self.assertEqual(self._counter, prev_value)
223 self.assertEqual(response_message.response_code, SysMsg_pb2.FAIL)
/test/vts/utils/python/fuzzer/
Dcorpus_manager_test.py40 self.assertEqual(_corpus_manager.enabled, False)
50 self.assertEqual(_corpus_manager.enabled, True)
51 self.assertEqual(_corpus_manager._gcs_path, 'corpus/Pie/Pixel3_XL')
52 self.assertEqual(_corpus_manager._device_serial, 'HT1178BBZWQ')
297 self.assertEqual(
300 self.assertEqual(
304 self.assertEqual(
308 self.assertEqual(
315 self.assertEqual(
319 self.assertEqual(
[all …]
/test/vts/utils/python/library/
Delf_parser_test.py78 self.assertEqual(len(none_secs), 0)
79 self.assertEqual(len(dup_secs), 2)
84 self.assertEqual(none_sec, None)
116 self.assertEqual(relocs, _ANDROID_RELOCATIONS)
126 self.assertEqual(relocs, _RELR_RELOCATIONS)
151 self.assertEqual(deps, _DEPENDENCIES)
152 self.assertEqual(runpaths, _RUNPATHS)
162 self.assertEqual(interp, "/lib64/ld-linux-x86-64.so.2")
/test/vts-testcase/kernel/checkpoint/
Dvts_kernel_checkpoint_test.py101 self.assertEqual(boot_completed, 1)
131 self.assertEqual(return_code, 0)
140 self.assertEqual(out.strip(), self._ORIGINALVALUE)
145 self.assertEqual(return_code, 0)
163 self.assertEqual(return_code, 0)
170 self.assertEqual(return_code, 0)
175 self.assertEqual(out.strip(), self._MODIFIEDVALUE)
DVtsKernelCheckpointTest.py97 asserts.assertEqual(boot_completed, 1)
127 asserts.assertEqual(result[const.EXIT_CODE], 0)
136 asserts.assertEqual(result.strip(), self._ORIGINALVALUE)
141 asserts.assertEqual(result[const.EXIT_CODE], 0)
159 asserts.assertEqual(result[const.EXIT_CODE], 0)
166 asserts.assertEqual(result[const.EXIT_CODE], 0)
171 asserts.assertEqual(result.strip(), self._MODIFIEDVALUE)
/test/vts-testcase/hal/automotive/vehicle/V2_0/host/
DVtsHalAutomotiveVehicleV2_0HostTest.py68 asserts.assertEqual(0x00ff0000, self.vtypes.VehiclePropertyType.MASK)
69 asserts.assertEqual(0x0f000000, self.vtypes.VehicleArea.MASK)
171 asserts.assertEqual(expectedStatus, status, "Prop 0x%x" % propertyId)
186 asserts.assertEqual(1, len(propValue["value"]["int32Values"]))
187 asserts.assertEqual(value, propValue["value"]["int32Values"][0])
246 asserts.assertEqual(1, len(propValue["value"]["int32Values"]))
277 asserts.assertEqual(self.vtypes.StatusCode.OK, status)
365 asserts.assertEqual(statusCode, 0,
421 asserts.assertEqual(
428 asserts.assertEqual(propConfig['prop'], propValue["prop"])
[all …]
/test/vts/utils/python/gcs/
Dgcs_api_utils_test.py87 self.assertEqual(length, 4)
101 self.assertEqual(dir_exist, True)
113 self.assertEqual(local_dest_folder, 'tmp/tmp4772/ILight_corpus_seed')
139 self.assertEqual(num_DownloadFile_called, 4)
155 self.assertEqual(num_UploadFile_called, 4)
/test/vts/utils/python/cpu/
Dcpu_frequency_scaling.py72 asserts.assertEqual(len(results[const.STDOUT]), 1)
108 asserts.assertEqual(1, len(results[const.EXIT_CODE]))
130 asserts.assertEqual(self._max_cpu_number - self._min_cpu_number,
139 asserts.assertEqual(self._max_cpu_number - self._min_cpu_number,
155 asserts.assertEqual(self._max_cpu_number - self._min_cpu_number,
208 asserts.assertEqual(2, len(results[const.STDOUT]))
/test/vts/utils/python/io/
Dfile_util_test.py45 self.assertEqual(True, result)
49 self.assertEqual(False, result)
53 self.assertEqual(True, result)
57 self.assertEqual(False, result)
/test/vti/test_serving/gae/webapp/src/tasks/
Dindexing_test.py53 self.assertEqual(1, len(schedules))
79 self.assertEqual(1, len(jobs))
94 self.assertEqual(
125 self.assertEqual(4, len(schedules))
152 self.assertEqual(10, len(jobs))
167 self.assertEqual(

123