]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - tests/hwsim/test_connect_cmd.py
tests: Python coding style cleanup (pylint3 bad-whitespace)
[thirdparty/hostap.git] / tests / hwsim / test_connect_cmd.py
index 630ea224f02b48df066e127ee26c011ea222df0c..87122aa327b14ebdde4d77823edf74fa56eb8f74 100644 (file)
@@ -15,9 +15,9 @@ from p2p_utils import *
 
 def test_connect_cmd_open(dev, apdev):
     """Open connection using cfg80211 connect command"""
-    params = { "ssid": "sta-connect",
-               "manage_p2p": "1",
-               "allow_cross_connection": "1" }
+    params = {"ssid": "sta-connect",
+              "manage_p2p": "1",
+              "allow_cross_connection": "1"}
     hostapd.add_ap(apdev[0], params)
 
     wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
@@ -31,7 +31,7 @@ def test_connect_cmd_open(dev, apdev):
 
 def test_connect_cmd_wep(dev, apdev):
     """WEP Open System using cfg80211 connect command"""
-    params = { "ssid": "sta-connect-wep", "wep_key0": '"hello"' }
+    params = {"ssid": "sta-connect-wep", "wep_key0": '"hello"'}
     hapd = hostapd.add_ap(apdev[0], params)
 
     wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
@@ -46,8 +46,8 @@ def test_connect_cmd_wep(dev, apdev):
 
 def test_connect_cmd_wep_shared(dev, apdev):
     """WEP Shared key using cfg80211 connect command"""
-    params = { "ssid": "sta-connect-wep", "wep_key0": '"hello"',
-               "auth_algs": "2" }
+    params = {"ssid": "sta-connect-wep", "wep_key0": '"hello"',
+              "auth_algs": "2"}
     hapd = hostapd.add_ap(apdev[0], params)
 
     wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
@@ -68,9 +68,9 @@ def test_connect_cmd_wep_shared(dev, apdev):
 
 def test_connect_cmd_p2p_management(dev, apdev):
     """Open connection using cfg80211 connect command and AP using P2P management"""
-    params = { "ssid": "sta-connect",
-               "manage_p2p": "1",
-               "allow_cross_connection": "0" }
+    params = {"ssid": "sta-connect",
+              "manage_p2p": "1",
+              "allow_cross_connection": "0"}
     hostapd.add_ap(apdev[0], params)
 
     wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
@@ -97,7 +97,7 @@ def test_connect_cmd_wpa2_psk(dev, apdev):
 def test_connect_cmd_concurrent_grpform_while_connecting(dev, apdev):
     """Concurrent P2P group formation while connecting to an AP using cfg80211 connect command"""
     logger.info("Start connection to an infrastructure AP")
-    hapd = hostapd.add_ap(apdev[0], { "ssid": "test-open" })
+    hapd = hostapd.add_ap(apdev[0], {"ssid": "test-open"})
 
     wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
     wpas.interface_add("wlan5", drv_params="force_connect_cmd=1")
@@ -122,8 +122,8 @@ def test_connect_cmd_concurrent_grpform_while_connecting(dev, apdev):
 
 def test_connect_cmd_reject_assoc(dev, apdev):
     """Connection using cfg80211 connect command getting rejected"""
-    params = { "ssid": "sta-connect",
-               "require_ht": "1" }
+    params = {"ssid": "sta-connect",
+              "require_ht": "1"}
     hostapd.add_ap(apdev[0], params)
 
     wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
@@ -141,7 +141,7 @@ def test_connect_cmd_reject_assoc(dev, apdev):
 
 def test_connect_cmd_disconnect_event(dev, apdev):
     """Connection using cfg80211 connect command getting disconnected by the AP"""
-    params = { "ssid": "sta-connect" }
+    params = {"ssid": "sta-connect"}
     hapd = hostapd.add_ap(apdev[0], params)
 
     wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
@@ -170,7 +170,7 @@ def test_connect_cmd_disconnect_event(dev, apdev):
 
 def test_connect_cmd_roam(dev, apdev):
     """cfg80211 connect command to trigger roam"""
-    params = { "ssid": "sta-connect" }
+    params = {"ssid": "sta-connect"}
     hostapd.add_ap(apdev[0], params)
 
     wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
@@ -188,7 +188,7 @@ def test_connect_cmd_roam(dev, apdev):
 
 def test_connect_cmd_bssid_hint(dev, apdev):
     """cfg80211 connect command with bssid_hint"""
-    params = { "ssid": "sta-connect" }
+    params = {"ssid": "sta-connect"}
     hostapd.add_ap(apdev[0], params)
     hostapd.add_ap(apdev[1], params)