class TestWebsocketProtocol(unittest.TestCase): def setUp(self): self.protocol = WampWebSocketProtocol() def test_close_before_open(self): # just checking this doesn't throw an exception... self.protocol.onClose(True, 1, "just testing")
def setUp(self): self.protocol = WampWebSocketProtocol()