class_docstr: Base class for integration tests.
class_docstr_tok: ["Base","class","for","integration","tests","."]
code: def _get_connection(self) -> http.client.HTTPConnection:
      protocol = self._get_transfer_protocol()
      url = "localhost:" + self._get_port()
  
      if protocol is not None and protocol.lower() == "https":
          connection = http.client.HTTPSConnection(url)
      else:
          connection = http.client.HTTPConnection(url)
  
      return connection
  
imports: import coverage
  import http.client
  import os
  import platform
  import shutil
  import signal
  import subprocess
  import tabpy
  import tempfile
  import time
  import unittest
label_desc: Use image node_id 14 for calling the IntegTestBase obj's underlying member method code with example usage: obj._get_connection() and returns: connection