def on_open(self, *args, **kwargs):
            """Set the keep_running flag for later inspection and immediately
            close the connection.
            """
            self.send("hello!")
            WebSocketAppTest.keep_running_open = self.keep_running
            self.keep_running = False
Set the keep_running flag for later inspection and immediately
            close the connection.
            
websocket/tests/test_app.py