From b034bf67034c4f0e966ebd207ba2f407f6f15fa8 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Thu, 25 May 2023 16:56:14 +0100 Subject: Tests: assertion related fixes. --- test/test_asgi_websockets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_asgi_websockets.py') 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' -- cgit