code: def test_with_http(self) -> None:
      assert (
          bcu.websocket_url_for_server_url("http://foo.com")
          == "ws://foo.com/ws"
      )
      assert (
          bcu.websocket_url_for_server_url("http://foo.com/")
          == "ws://foo.com/ws"
      )
  
file_path: bokeh/tests/unit/bokeh/client/test_util__client.py
imports: from __future__ import annotations
  import pytest
  import bokeh.client.util
label_desc: Use image node_id 1 for calling the Test_websocket_url_for_server_url obj's underlying member method code with example usage: obj.test_with_http() without return types