mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +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:
parent
a44969f837
commit
2f4c9d05fe
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user