diff options
author | liris <liris.pp@gmail.com> | 2018-08-19 20:02:13 +0900 |
---|---|---|
committer | liris <liris.pp@gmail.com> | 2018-08-19 20:02:13 +0900 |
commit | ae589495b75162703ab4fe1f8712f50d22b12d4e (patch) | |
tree | 8f41a869365a028128e9e3c0eed5f68ca8441ca4 /websocket/tests/test_websocket.py | |
parent | 8a8a2eb5d455b41a355b2e1ae93bf3323f333c74 (diff) | |
download | websocket-client-0.51.0.tar.gz |
revert #442v0.51.0
Diffstat (limited to 'websocket/tests/test_websocket.py')
-rw-r--r-- | websocket/tests/test_websocket.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/websocket/tests/test_websocket.py b/websocket/tests/test_websocket.py index 2fec954..f49a893 100644 --- a/websocket/tests/test_websocket.py +++ b/websocket/tests/test_websocket.py @@ -542,28 +542,6 @@ class WebSocketAppTest(unittest.TestCase): # Note: We can't use 'is' for comparing the functions directly, need to use 'id'. # self.assertEqual(WebSocketAppTest.get_mask_key_id, id(my_mask_key_func)) - def testSettingClassCallbacks(self): - """ App class should provide possibility to set callback functions via class instantiate call, class inheritance - and via setting instance attributes - """ - class TestApp(ws.WebSocketApp): - def on_close(self): - pass - - def on_open(ws): - pass - - def on_message(ws): - pass - - app = TestApp('ws://www.example.com/', on_open=on_open) - app.on_message = on_message - - #assert isinstance(app.on_close, function) - assert callable(app.on_open) - assert callable(app.on_message) - assert callable(app.on_close) - class SockOptTest(unittest.TestCase): @unittest.skipUnless(TEST_WITH_INTERNET, "Internet-requiring tests are disabled") |