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_java_websockets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_java_websockets.py') diff --git a/test/test_java_websockets.py b/test/test_java_websockets.py index 85d7fec6..2f212aa4 100644 --- a/test/test_java_websockets.py +++ b/test/test_java_websockets.py @@ -28,10 +28,10 @@ class TestJavaWebsockets(TestApplicationJava): 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