Home
last modified time | relevance | path

Searched refs:assert_true (Results 1 – 25 of 64) sorted by relevance

123

/tools/test/connectivity/acts/tests/google/wifi/rtt/functional/
DRangeApNonSupporting11McTest.py50 asserts.assert_true(len(non_rtt_aps) > 0, "Need at least one AP!")
60 asserts.assert_true(stat['num_no_results'] == 0,
68 asserts.assert_true(stat['num_failures'] <=
72 asserts.assert_true(stat['num_range_out_of_margin'] <=
88 asserts.assert_true(len(non_rtt_aps) > 0, "Need at least one AP!")
98 asserts.assert_true(stat['num_no_results'] == 0,
100 asserts.assert_true(stat['num_failures'] == self.NUM_ITER,
104 asserts.assert_true(code ==
119 asserts.assert_true(len(non_rtt_aps) > 0, "Need at least one AP!")
132 asserts.assert_true(stat['num_no_results'] == 0,
[all …]
DRttDisableTest.py50 asserts.assert_true(dut.droid.wifiIsRttAvailable(), "RTT is not available")
55 asserts.assert_true(len(all_aps) > 0, "Need at least one visible AP!")
61 asserts.assert_true(utils.force_airplane_mode(dut, True),
64 asserts.assert_true(utils.enable_doze(dut), "Can't enable doze")
81 asserts.assert_true(utils.force_airplane_mode(dut, False),
84 asserts.assert_true(utils.disable_doze(dut), "Can't disable doze")
89 asserts.assert_true(dut.droid.wifiIsRttAvailable(), "RTT is not available")
DRangeApMiscTest.py59 asserts.assert_true(stat['num_no_results'] == 0,
68 asserts.assert_true(stat['num_failures'] <=
72 asserts.assert_true(stat['num_range_out_of_margin'] <=
78 asserts.assert_true(stat['num_failures'] == self.NUM_ITER,
82 asserts.assert_true(code ==
DRangeAwareTest.py72 asserts.assert_true(resp_mac is not None or resp_peer_id is not None,
226 asserts.assert_true(stats['num_no_results'] == 0,
238 asserts.assert_true(
243 asserts.assert_true(
250 asserts.assert_true(stats_reverse_direction['num_no_results'] == 0,
259 asserts.assert_true(
264 asserts.assert_true(
DRangeApSupporting11McTest.py58 asserts.assert_true(stat['num_no_results'] == 0,
70 asserts.assert_true(stat['num_failures'] <=
74 asserts.assert_true(stat['num_range_out_of_margin'] <=
143 asserts.assert_true(
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dipsec_test_utils.py29 asserts.assert_true(
55 asserts.assert_true(in_spi and out_spi, "Failed to allocate SPIs")
68 asserts.assert_true(not spi, "Failed to release SPI")
102 asserts.assert_true(in_transform and out_transform,
117 asserts.assert_true(not status, "Failed to destroy transform")
131 asserts.assert_true(in_transform and out_transform,
146 asserts.assert_true(status, "Failed to remove transform")
160 asserts.assert_true(in_tfrm_status and out_tfrm_status,
174 asserts.assert_true(status, "Failed to remove transform")
188 asserts.assert_true(in_tfrm_status and out_tfrm_status,
[all …]
/tools/test/connectivity/acts/tests/google/wifi/
DWifiScannerScanTest.py108 asserts.assert_true(self.dut.droid.wifiIsScannerSupported(),
224 asserts.assert_true(
302 asserts.assert_true(bssids > 0, EMPTY_RESULT)
303 asserts.assert_true(validity, INVALID_RESULT)
307 asserts.assert_true(
313 asserts.assert_true(
351 asserts.assert_true(bssids > 0, EMPTY_RESULT)
352 asserts.assert_true(validity, INVALID_RESULT)
355 asserts.assert_true(
371 asserts.assert_true(llen == 1,
[all …]
DWifiRttManagerTest.py64 asserts.assert_true(
123 asserts.assert_true(
147 asserts.assert_true(result_len == param_len,
319 asserts.assert_true(total > 0, "No RTT response received.")
325 asserts.assert_true(valid_response_rate >= 0.9,
333 asserts.assert_true(valid_value_rate >= 0.67, msg)
447 asserts.assert_true(self.dut.droid.wifiIsDeviceToDeviceRttSupported(),
450 asserts.assert_true(self.dut.droid.wifiIsDeviceToApRttSupported(),
467 asserts.assert_true(caps, "Unable to get rtt capabilities.")
470 asserts.assert_true(model in self.rtt_cap_table,
[all …]
DWifiScannerMultiScanTest.py73 asserts.assert_true(
90 asserts.assert_true(
110 asserts.assert_true(actual_num_of_results <= expected_num_of_results,
174 asserts.assert_true(
190 asserts.assert_true(
245 asserts.assert_true(self.dut.droid.wifiIsScannerSupported(),
292 asserts.assert_true(scan_results_dict, "Scan result dict is empty.")
321 asserts.assert_true(
DWifiConnectedMacRandomizationTest.py77 asserts.assert_true(
80 asserts.assert_true(
127 asserts.assert_true(
201 asserts.assert_true(
257 asserts.assert_true(len(log) > 0, "Randomized MAC not in log.")
259 asserts.assert_true(len(log) == 0, "Factory MAC is in log.")
DWifiManagerTest.py64 asserts.assert_true(
245 asserts.assert_true(success, "Error occurred in iPerf traffic.")
314 asserts.assert_true(new_energy >= energy,
318 asserts.assert_true(new_idle_time >= idle_time,
330 asserts.assert_true(self.dut.droid.wifiScannerIsAlwaysAvailable(), msg)
338 asserts.assert_true(not self.dut.droid.wifiScannerIsAlwaysAvailable(), msg)
346 asserts.assert_true(not self.dut.droid.wifiScannerIsAlwaysAvailable(), msg)
472 asserts.assert_true(
479 asserts.assert_true(
564 asserts.assert_true(nId > -1, "Failed to add network.")
[all …]
DWifiTetheringTest.py53 asserts.assert_true(
56 asserts.assert_true(
126 asserts.assert_true(self._is_ipaddress_ipv6(http_response),
128 asserts.assert_true(
131 asserts.assert_true(
135 asserts.assert_true(
298 asserts.assert_true(ad.droid.wifiSetWifiApConfiguration(config),
301 asserts.assert_true(wifi_ap[wutils.WifiEnums.SSID_KEY] == config[wutils.WifiEnums.SSID_KEY],
360 asserts.assert_true(ping_result, "Ping6 failed on the client")
362 asserts.assert_true(not ping_result, "Ping6 failed as expected")
[all …]
DWifiSoftApTest.py121 asserts.assert_true(self.dut.droid.telephonyIsDataEnabled(),
151 asserts.assert_true(ret != -1, "Add network %r failed" % config)
177 asserts.assert_true(hotspot_supported,
179 asserts.assert_true(tethering_supported,
285 asserts.assert_true(self.dut.droid.wifiIsApEnabled(),
DWifiPreFlightTest.py68 asserts.assert_true(
160 asserts.assert_true(not result,
179 asserts.assert_true(not found_networks,
DWifiAutoUpdateTest.py74 asserts.assert_true(
77 asserts.assert_true(
125 asserts.assert_true(ret != -1, "Add network %r failed" % network)
DWifiStaApConcurrencyTest.py142 asserts.assert_true(self.dut.droid.wifiScannerIsAlwaysAvailable(), msg)
150 asserts.assert_true(not self.dut.droid.wifiScannerIsAlwaysAvailable(), msg)
168 asserts.assert_true(success, "Error occurred in iPerf traffic.")
257 asserts.assert_true(self.dut.droid.wifiCheckState(),
259 asserts.assert_true(self.dut.droid.wifiIsApEnabled(),
DWifiRoamingTest.py52 asserts.assert_true(
55 asserts.assert_true(
/tools/test/connectivity/acts/tests/google/wifi/rtt/stress/
DStressRangeApTest.py45 asserts.assert_true(
61 asserts.assert_true(stat['num_no_results'] == 0,
69 asserts.assert_true(stat['num_failures'] <=
73 asserts.assert_true(stat['num_range_out_of_margin'] <=
DStressRangeAwareTest.py62 asserts.assert_true(resp_mac is not None or resp_peer_id is not None,
120 asserts.assert_true(stats['num_no_results'] == 0,
128 asserts.assert_true(
133 asserts.assert_true(
/tools/test/connectivity/acts/tests/google/net/
DDnsOverTlsTest.py54 asserts.assert_true(
137 asserts.assert_true(mode == dns_mode,
143 asserts.assert_true(wutils.validate_connection(self.dut, host),
288 asserts.assert_true(
320 asserts.assert_true(DNS_QUAD9 in wifi_dns_servers,
322 asserts.assert_true(DNS_QUAD9 in lte_dns_servers,
339 asserts.assert_true(mode == PRIVATE_DNS_MODE_OPPORTUNISTIC,
368 asserts.assert_true(
DDataCostTest.py54 asserts.assert_true(
94 asserts.assert_true(val == exp, "Multipath value should be 0")
96 asserts.assert_true(val >= exp,
/tools/test/connectivity/acts/tests/google/wifi/aware/stress/
DInfraAssociationStressTest.py79 asserts.assert_true(
81 asserts.assert_true(
128 asserts.assert_true(
/tools/test/connectivity/acts/tests/google/wifi/aware/performance/
DThroughputTest.py82 asserts.assert_true(result, "Can't start iperf3 server")
87 asserts.assert_true(result,
117 asserts.assert_true(result, "Can't start iperf3 server")
140 asserts.assert_true(len(self.android_devices) > max_ndp,
202 asserts.assert_true(result,
358 asserts.assert_true(result,
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_test_utils.py507 asserts.assert_true(
528 asserts.assert_true(target_params,
655 asserts.assert_true(
668 asserts.assert_true(
673 asserts.assert_true(
731 asserts.assert_true(not ad.droid.wifiScannerIsAlwaysAvailable(), msg)
833 asserts.assert_true(start_wifi_connection_scan_and_check_for_network(
894 asserts.assert_true(
1009 asserts.assert_true(connect_result,
1177 asserts.assert_true(WifiEnums.SSID_KEY in network,
[all …]
/tools/test/connectivity/acts/tests/google/bt/
DBtMetricsTest.py102 asserts.assert_true(start_time <= t <= end_time,
106 asserts.assert_true(device_info, "Device info is none")

123