File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -888,8 +888,8 @@ def test_client_ping_timeout(self):
888888 yield gen .sleep (0.2 )
889889
890890 # connection should still be open from the server end
891- assert handler .close_code is None
892- assert handler .close_reason is None
891+ self . assertIsNone ( handler .close_code )
892+ self . assertIsNone ( handler .close_reason )
893893
894894 # connection should still be open from the client end
895895 assert ws .protocol .close_code is None
@@ -901,11 +901,11 @@ def test_client_ping_timeout(self):
901901 yield gen .sleep (0.2 )
902902
903903 # connection should be closed from the server side
904- assert handler .close_code == 1000
905- assert handler .close_reason == "ping timed out"
904+ self . assertEqual ( handler .close_code , 1000 )
905+ self . assertEqual ( handler .close_reason , "ping timed out" )
906906
907907 # client should have received a close operation
908- assert ws .protocol .close_code == 1000
908+ self . assertEqual ( ws .protocol .close_code , 1000 )
909909
910910
911911class ManualPingTest (WebSocketBaseTestCase ):
You can’t perform that action at this time.
0 commit comments