Home
last modified time | relevance | path

Searched refs:asserts (Results 1 – 25 of 203) sorted by relevance

123456789

/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/compliance/
DWlanPhyComplianceABGTest.py17 from acts import asserts
137 asserts.assert_true(self.dut.associate(self.open_network_2g['SSID']),
146 asserts.assert_true(self.dut.associate(self.open_network_2g['SSID']),
155 asserts.assert_true(self.dut.associate(self.open_network_2g['SSID']),
164 asserts.assert_true(self.dut.associate(self.open_network_2g['SSID']),
173 asserts.assert_true(self.dut.associate(self.open_network_2g['SSID']),
182 asserts.assert_true(self.dut.associate(self.open_network_2g['SSID']),
192 asserts.assert_true(self.dut.associate(self.open_network_2g['SSID']),
202 asserts.assert_true(self.dut.associate(self.open_network_2g['SSID']),
212 asserts.assert_true(self.dut.associate(self.open_network_2g['SSID']),
[all …]
DVapeInteropTest.py17 from acts import asserts
88 asserts.assert_true(self.dut.associate(self.ssid),
98 asserts.assert_true(
109 asserts.assert_true(self.dut.associate(self.ssid),
119 asserts.assert_true(
130 asserts.assert_true(self.dut.associate(self.ssid),
140 asserts.assert_true(
151 asserts.assert_true(self.dut.associate(self.ssid),
161 asserts.assert_true(
172 asserts.assert_true(self.dut.associate(self.ssid),
[all …]
DWlanSecurityComplianceABGTest.py18 from acts import asserts
219 asserts.assert_true(
236 asserts.assert_true(
253 asserts.assert_true(
270 asserts.assert_true(
287 asserts.assert_true(
304 asserts.assert_true(
321 asserts.assert_true(
338 asserts.assert_true(
354 asserts.assert_true(
[all …]
/tools/test/connectivity/acts_tests/tests/google/net/
DDhcpServerTest.py1 from acts import asserts
58 asserts.assert_false(None == resp,
62 asserts.assert_false(None == self.server_addr,
131 asserts.assert_true(len(new_ifaces) < 2,
136 asserts.fail("Timeout waiting for tethering interface on host")
159 asserts.assert_false(None == resp, "Device did not reply to discover")
160 asserts.assert_true(get_yiaddr(resp).startswith(NETADDR_PREFIX),
177 asserts.assert_equal(INET4_ANY, bootp.ciaddr)
178 asserts.assert_equal(self.server_addr, bootp.siaddr)
179 asserts.assert_equal(INET4_ANY, bootp.giaddr)
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/wlan/functional/
DWlanTargetSecurityTest.py17 from acts import asserts
95 asserts.assert_true(self.dut.associate(ssid), 'Failed to associate.')
99 asserts.assert_false(
107 asserts.assert_false(
115 asserts.assert_false(
123 asserts.assert_false(
132 asserts.assert_false(self.dut.associate(ssid),
137 asserts.assert_true(
144 asserts.assert_false(
152 asserts.assert_false(
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiSoftApTest.py20 from acts import asserts
70 asserts.assert_equal(self.dut.droid.wifiGetVerboseLoggingLevel(), 1,
73 asserts.assert_equal(self.dut_client.droid.wifiGetVerboseLoggingLevel(), 1,
85 asserts.assert_equal(self.android_devices[2].droid.wifiGetVerboseLoggingLevel(), 1,
124 asserts.assert_true(utils.force_airplane_mode(self.dut, False),
175 asserts.assert_true(self.dut.droid.telephonyIsDataEnabled(),
210 asserts.assert_true(ret != -1, "Add network %r failed" % config)
219 asserts.assert_false(self.dut.droid.wifiIsApEnabled(),
224 asserts.fail("Wifi was disabled before softap and now it is enabled")
242 asserts.assert_true(
[all …]
DWifiScannerScanTest.py22 from acts import asserts
209 asserts.assert_true(
288 asserts.assert_equal(
292 asserts.assert_true(bssids > 0, EMPTY_RESULT)
293 asserts.assert_true(validity, INVALID_RESULT)
297 asserts.assert_true(
303 asserts.assert_true(
341 asserts.assert_true(bssids > 0, EMPTY_RESULT)
342 asserts.assert_true(validity, INVALID_RESULT)
345 asserts.assert_true(
[all …]
DWifiNetworkSuggestionTest.py27 from acts import asserts
184 asserts.assert_true(
220 asserts.assert_true(
227 asserts.assert_false(
260 asserts.assert_true(self.is_approved(), "User approval should be kept")
299 asserts.assert_true(
345 asserts.assert_true(
358 asserts.assert_true(
401 asserts.assert_true(
536 asserts.assert_true(
[all …]
DWifiDppTest.py21 from acts import asserts
139 asserts.fail("Must specify wifi_psk_network and wifi_sae_network for DPP R2 tests")
143 asserts.assert_true(self.dut.droid.wifiGetVerboseLoggingLevel() == 1,
273 asserts.fail("gen_uri: Failed to generate a URI. Command used: %s" % cmd)
295 asserts.fail("get_uri: Failed to read URI. Command used: %s" % cmd)
337 asserts.fail("start_responder: Must specify net_role sta or ap")
401 asserts.fail(
409 asserts.fail(
432 asserts.fail("start_responder: Must specify net_role sta or ap")
442 asserts.fail("start_responder_enrollee: Failure. Command used: %s" % cmd)
[all …]
DWifiWpa3EnterpriseTest.py17 from acts import asserts
64 asserts.skip_if(
112 asserts.fail("WPA3 Ent worked with insecure RSA key. Expected to fail.")
116 asserts.assert_true(logcat_search, "No valid error msg in logcat")
133 asserts.fail("WPA3 Ent worked with expired cert. Expected to fail.")
137 asserts.assert_true(logcat_search, "No valid error msg in logcat")
153 asserts.fail("WPA3 Ent worked with corrupted cert. Expected to fail.")
155 asserts.explicit_pass("Connection failed as expected.")
171 asserts.fail("WPA3 Ent worked with unsigned cert. Expected to fail.")
173 asserts.explicit_pass("Connection failed as expected.")
[all …]
DWifiManagerTest.py28 from acts import asserts
86 asserts.assert_true(
112 asserts.assert_true(
268 asserts.assert_true(success, "Error occurred in iPerf traffic.")
324 asserts.skip(
337 asserts.assert_true(new_energy >= energy,
341 asserts.assert_true(new_idle_time >= idle_time,
353 asserts.assert_true(self.dut.droid.wifiScannerIsAlwaysAvailable(), msg)
361 asserts.assert_true(not self.dut.droid.wifiScannerIsAlwaysAvailable(), msg)
369 asserts.assert_true(not self.dut.droid.wifiScannerIsAlwaysAvailable(), msg)
[all …]
DWifiConnectedMacRandomizationTest.py28 from acts import asserts
64 asserts.assert_equal(
76 asserts.assert_true(
79 asserts.assert_true(
124 asserts.assert_true(
128 asserts.assert_equal(first_byte & 1, 0, "MAC address is not unicast.")
129 asserts.assert_equal(first_byte & 2, 2, "MAC address is not local.")
136 asserts.assert_equal(
198 asserts.assert_true(
210 asserts.assert_equal(
[all …]
DWifiAutoJoinTest.py19 from acts import asserts
115 asserts.assert_true('network_id' in current_network,
117 asserts.assert_true(current_network['network_id'] >= 0,
154 asserts.assert_true(
158 asserts.assert_true(
194 asserts.assert_false(
217 asserts.assert_false(
241 asserts.assert_false(
266 asserts.assert_false(
289 asserts.assert_false(
[all …]
/tools/test/connectivity/acts_tests/tests/google/fuchsia/backlight/
DBacklightTest.py21 from acts import asserts, signals
68 asserts.skip_if('backlight_tests' not in self.user_params,
76 asserts.assert_true(result['error'] is None,
80 asserts.assert_true(result['error'] is None,
83 asserts.assert_true(result['result']['backlight_on'],
85 asserts.assert_true(
94 asserts.assert_true(result['error'] is None,
98 asserts.assert_true(result['error'] is None,
101 asserts.assert_true(result['result']['backlight_on'],
103 asserts.assert_true(
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Dwifi_test_utils.py29 from acts import asserts
582 asserts.assert_true(
603 asserts.assert_true(target_params,
659 asserts.assert_equal(state, ad.droid.wifiCheckState(), fail_msg)
712 asserts.assert_equal(new_state, ad.droid.wifiCheckState(), fail_msg)
742 asserts.assert_true(
755 asserts.assert_true(utils.force_airplane_mode(ad, True),
759 asserts.assert_true(utils.force_airplane_mode(ad, False),
799 asserts.fail("Failed to remove network %s." % n)
819 asserts.assert_true(not ad.droid.wifiScannerIsAlwaysAvailable(), msg)
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/rtt/functional/
DRangeApNonSupporting11McTest.py17 from acts import asserts
49 asserts.skip_if(
57 asserts.assert_true(len(non_rtt_aps) > 0, "Need at least one AP!")
67 asserts.assert_true(
71 asserts.assert_false(
73 asserts.assert_false(
75 asserts.assert_equal(
77 asserts.assert_true(
84 asserts.assert_true(
90 asserts.explicit_pass("RTT test done", extras=stats)
[all …]
DRangeApSupporting11McTest.py20 from acts import asserts
68 asserts.assert_true(
72 asserts.assert_false(
74 asserts.assert_false(
76 asserts.assert_false(
80 asserts.assert_false(
84 asserts.assert_equal(
86 asserts.assert_true(
93 asserts.assert_true(
99 asserts.explicit_pass("RTT test done", extras=stats)
[all …]
DRangeAwareTest.py20 from acts import asserts
74 asserts.assert_true(
240 asserts.assert_true(
244 asserts.assert_false(
246 asserts.assert_false(
248 asserts.assert_false(
252 asserts.assert_false(
256 asserts.assert_equal(
258 asserts.assert_true(
265 asserts.assert_true(
[all …]
DRangeApMiscTest.py17 from acts import asserts
56 asserts.assert_true(
61 asserts.assert_false(
63 asserts.assert_false(
65 asserts.assert_equal(
67 asserts.assert_true(
73 asserts.assert_true(
80 asserts.assert_true(
85 asserts.assert_true(
90 asserts.explicit_pass("RTT test done", extras=stats)
DRttDisableTest.py17 from acts import asserts
54 asserts.assert_true(dut.droid.wifiIsRttAvailable(),
60 asserts.assert_true(len(all_aps) > 0, "Need at least one visible AP!")
66 asserts.assert_true(
70 asserts.assert_true(utils.enable_doze(dut), "Can't enable doze")
75 asserts.assert_false(dut.droid.wifiIsRttAvailable(),
82 asserts.assert_equal(
88 asserts.assert_true(
92 asserts.assert_true(utils.disable_doze(dut), "Can't disable doze")
97 asserts.assert_true(dut.droid.wifiIsRttAvailable(),
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/stress/
DMessagesStressTest.py19 from acts import asserts
95 asserts.fail("Unexpected event: %s" % event)
308 asserts.assert_equal(results["tx_unknown_ids"], 0,
310 asserts.assert_equal(results["tx_count_neither"], 0,
313 asserts.assert_equal(results["tx_count_duplicate_fail"], 0,
315 asserts.assert_equal(results["tx_count_duplicate_success"], 0,
317 asserts.assert_equal(results["rx_count_no_tx_message"], 0,
319 asserts.assert_equal(results["tx_count_tx_ok_but_no_rx"], 0,
323 asserts.assert_equal(results["rx_count_no_ok_tx_indication"], 0,
325 asserts.assert_equal(results["rx_count_fail_tx_indication"], 0,
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/
Dsocket_test_utils.py22 from acts import asserts
43 asserts.assert_true(fd_key, "Failed to open socket")
54 asserts.assert_true(status, "Failed to close socket")
75 asserts.assert_true(sock, "Failed to accept socket")
108 asserts.assert_true(send_list and recv_list and send_list == recv_list,
125 asserts.assert_true(socket_key, "Failed to open datagram socket")
135 asserts.assert_true(status, "Failed to close datagram socket")
170 asserts.assert_true(send_list and recv_list and send_list == recv_list,
224 asserts.assert_true(client_sock and server_sock, "Failed to open sockets")
238 asserts.assert_true(sock, "Failed to open server socket")
[all …]
Dipsec_test_utils.py24 from acts import asserts
29 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")
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/performance/
DThroughputTest.py23 from acts import asserts
80 asserts.assert_true(result, "Can't start iperf3 server")
84 asserts.assert_true(result,
95 asserts.fail(
115 asserts.assert_true(result, "Can't start iperf3 server")
138 asserts.assert_true(
164 asserts.assert_equal(
170 asserts.assert_equal(
204 asserts.assert_true(
209 asserts.fail(
[all …]
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/functional/
DDataPathTest.py19 from acts import asserts
244 asserts.assert_false(
247 asserts.assert_false(
283 asserts.assert_true(
286 asserts.assert_true(
412 asserts.assert_false(
415 asserts.assert_false(
447 asserts.assert_true(
451 asserts.assert_true(
634 asserts.assert_true(aconsts.NET_CAP_PORT not in p_data,
[all …]

123456789