mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 14:22:36 +01:00
9d3d65a282
This is a helper/shortcut to get_ordered_networks (plural). In nearly all the autotests we had (roughly) the same block of code: ordered_network = get_ordered_networks()[0] self.assertNotEqual(ordered_network, None) self.assertEqual(ordered_network.name, "someSsid") Rather than having to do this, we can simplify and just have a single call to get_ordered_network, which takes the SSID. If the SSID is not found, we raise an exception. This avoids needing both asserts since we are guarenteed that the return is valid and the SSID matches. This also avoids possible issues with multiple networks showing up in the GetOrderedNetworks call. Eventually test-runner will support running tests on real wireless hardware, so its possible we could pick up unexpected networks in the scan. |
||
---|---|---|
.. | ||
hlrauc.py | ||
hostapd.py | ||
hwsim.py | ||
iwd.py | ||
ofono.py | ||
testutil.py | ||
wiphy.py |