summaryrefslogtreecommitdiff
path: root/tests/wipy/wlan/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wipy/wlan/server.py')
-rw-r--r--tests/wipy/wlan/server.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/wipy/wlan/server.py b/tests/wipy/wlan/server.py
index 05847e376..40f56745c 100644
--- a/tests/wipy/wlan/server.py
+++ b/tests/wipy/wlan/server.py
@@ -1,13 +1,13 @@
-'''
+"""
network server test for the CC3200 based boards.
-'''
+"""
import os
import network
mch = os.uname().machine
-if not 'LaunchPad' in mch and not'WiPy' in mch:
- raise Exception('Board not supported!')
+if not "LaunchPad" in mch and not "WiPy" in mch:
+ raise Exception("Board not supported!")
server = network.Server()
@@ -16,7 +16,7 @@ print(server.isrunning() == True)
server.deinit()
print(server.isrunning() == False)
-server.init(login=('test-user', 'test-password'), timeout=60)
+server.init(login=("test-user", "test-password"), timeout=60)
print(server.isrunning() == True)
print(server.timeout() == 60)
@@ -28,14 +28,14 @@ print(server.isrunning() == True)
try:
server.init(1)
except:
- print('Exception')
+ print("Exception")
try:
- server.init(0, login=('0000000000011111111111222222222222333333', 'abc'))
+ server.init(0, login=("0000000000011111111111222222222222333333", "abc"))
except:
- print('Exception')
+ print("Exception")
try:
server.timeout(1)
except:
- print('Exception')
+ print("Exception")