3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

auto-t: use get_ordered_network in testWPA2

Modified 'password_test' in testWPA2 to use the new get_ordered_network
call.
This commit is contained in:
James Prestwood 2019-01-07 10:38:08 -08:00 committed by Denis Kenzior
parent a44969f837
commit 2f4c9d05fe

View File

@ -32,10 +32,7 @@ class Test(unittest.TestCase):
condition = 'not obj.scanning'
wd.wait_for_object_condition(device, condition)
ordered_networks = device.get_ordered_networks()
self.assertEqual(len(ordered_networks), 1)
ordered_network = ordered_networks[0]
self.assertEqual(ordered_network.name, "ssidCCMP")
ordered_network = device.get_ordered_network("ssidCCMP")
self.assertEqual(ordered_network.type, NetworkType.psk)
network = ordered_network.network_object