summaryrefslogtreecommitdiffhomepage
path: root/test/test_asgi_websockets.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_asgi_websockets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_asgi_websockets.py b/test/test_asgi_websockets.py
index e891b03e..e5b88206 100644
--- a/test/test_asgi_websockets.py
+++ b/test/test_asgi_websockets.py
@@ -34,10 +34,10 @@ class TestASGIWebsockets(TestApplicationPython):
self.check_close(sock)
def check_close(self, sock, code=1000, no_close=False, frame=None):
- if frame == None:
+ if frame is None:
frame = self.ws.frame_read(sock)
- assert frame['fin'] == True, 'close fin'
+ assert frame['fin'], 'close fin'
assert frame['opcode'] == self.ws.OP_CLOSE, 'close opcode'
assert frame['code'] == code, 'close code'