diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-25 16:56:14 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2023-05-25 16:56:14 +0100 |
commit | b034bf67034c4f0e966ebd207ba2f407f6f15fa8 (patch) | |
tree | ed2f338b2283b2b4d4ec562ab7e251268ac3f0fa /test/test_java_websockets.py | |
parent | 0132e552d0b9e8b724015728b5fbd7dad9d2edcb (diff) | |
download | unit-b034bf67034c4f0e966ebd207ba2f407f6f15fa8.tar.gz unit-b034bf67034c4f0e966ebd207ba2f407f6f15fa8.tar.bz2 |
Tests: assertion related fixes.
Diffstat (limited to '')
-rw-r--r-- | test/test_java_websockets.py | 4 |
1 files changed, 2 insertions, 2 deletions
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' |