From 7ee2b385c92b57cf89ae778806330e14b7d808df Mon Sep 17 00:00:00 2001 From: Fioddor Superconcentrado Date: Sun, 20 Dec 2020 16:23:05 +0100 Subject: [PATCH] network: Minor refactoring in a test Signed-off-by: Fioddor Superconcentrado Reviewed-by: Sunil Mohan Adapa --- plinth/tests/test_network.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plinth/tests/test_network.py b/plinth/tests/test_network.py index 3bed5153f..3b029c4ce 100644 --- a/plinth/tests/test_network.py +++ b/plinth/tests/test_network.py @@ -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):