def build_session(self):
        s = requests.Session()
        if "certificate-authority" in self.config.cluster:
            s.verify = self.config.cluster["certificate-authority"].filename()
        if "token" in self.config.user and self.config.user["token"]:
            s.headers["Authorization"] = "Bearer {}".format(self.config.user["token"])
        else:
            s.cert = (
                self.config.user["client-certificate"].filename(),
                self.config.user["client-key"].filename(),
            )
        return s
Test CamelCase to Enthought style name conversion.
dataset/ETHPy150Open eldarion-gondor/pykube/pykube/http.py/HTTPClient.build_session--crossover with--dataset/ETHPy150Open enthought/mayavi/tvtk/tests/test_tvtk_base.py/TestTVTKBase.test_camel2enthought