network: Minor refactoring in a test

Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Fioddor Superconcentrado authored and Sunil Mohan Adapa committed 2021-01-25 15:40:35 -08:00
1 parent 213cf16f8d
commit 7ee2b385c9
1 file changed
+4 -3
+4 -3
View File
@@ -135,10 +135,11 @@ def fixture_pppoe_uuid(network):
def test_get_connection_list(network):
"""Check that we can get a list of available connections."""
connections = network.get_connection_list()
connection_names = [conn['name'] for conn in connections]
assert 'plinth_test_eth' in [x['name'] for x in connections]
assert 'plinth_test_wifi' in [x['name'] for x in connections]
assert 'plinth_test_pppoe' in [x['name'] for x in connections]
assert 'plinth_test_eth' in connection_names
assert 'plinth_test_wifi' in connection_names
assert 'plinth_test_pppoe' in connection_names
def test_get_connection(network, ethernet_uuid, wifi_uuid):