コード例 #1
0
ファイル: test_https.py プロジェクト: JasonRepo/urllib3
    def test_assert_hostname_false(self):
        https_pool = HTTPSConnectionPool('127.0.0.1', self.port,
                                         cert_reqs='CERT_REQUIRED',
                                         ca_certs=DEFAULT_CA)

        https_pool.assert_hostname = False
        https_pool.request('GET', '/')
コード例 #2
0
ファイル: test_https.py プロジェクト: 1T/urllib3
    def test_assert_specific_hostname(self):
        https_pool = HTTPSConnectionPool('127.0.0.1', self.port,
                                         cert_reqs='CERT_REQUIRED')

        https_pool.ca_certs = DEFAULT_CA
        https_pool.assert_hostname = 'localhost'
        https_pool.request('GET', '/')
コード例 #3
0
ファイル: test_https.py プロジェクト: tuna/feed_tuna
    def test_assert_specific_hostname(self):
        https_pool = HTTPSConnectionPool('localhost', self.port,
                                         cert_reqs='CERT_REQUIRED',
                                         ca_certs=DEFAULT_CA)

        https_pool.assert_hostname = 'localhost'
        https_pool.request('GET', '/')
コード例 #4
0
    def test_assert_hostname_false(self):
        https_pool = HTTPSConnectionPool('127.0.0.1', self.port,
                                         cert_reqs='CERT_REQUIRED')

        https_pool.ca_certs = DEFAULT_CA
        https_pool.assert_hostname = False
        https_pool.request('GET', '/')
コード例 #5
0
ファイル: test_https.py プロジェクト: Lukasa/urllib3
    def test_assert_specific_hostname(self):
        https_pool = HTTPSConnectionPool('localhost', self.port,
                                         cert_reqs='CERT_REQUIRED',
                                         ca_certs=DEFAULT_CA)
        self.addCleanup(https_pool.close)

        https_pool.assert_hostname = 'localhost'
        https_pool.request('GET', '/')
コード例 #6
0
    def test_assert_hostname_false(self):
        https_pool = HTTPSConnectionPool('localhost', self.port,
                                         cert_reqs='CERT_REQUIRED',
                                         ca_certs=DEFAULT_CA)
        self.addCleanup(https_pool.close)

        https_pool.assert_hostname = False
        https_pool.request('GET', '/')
コード例 #7
0
ファイル: test_https.py プロジェクト: tiran/urllib3
    def test_assert_specific_hostname(self):
        https_pool = HTTPSConnectionPool("localhost",
                                         self.port,
                                         cert_reqs="CERT_REQUIRED",
                                         ca_certs=DEFAULT_CA)
        self.addCleanup(https_pool.close)

        https_pool.assert_hostname = "localhost"
        https_pool.request("GET", "/")
コード例 #8
0
ファイル: test_https.py プロジェクト: gagern/urllib3
    def test_assert_specific_hostname(self):
        https_pool = HTTPSConnectionPool("127.0.0.1", self.port, cert_reqs="CERT_REQUIRED")

        https_pool.ca_certs = DEFAULT_CA
        https_pool.assert_hostname = "localhost"
        https_pool.request("GET", "/")
コード例 #9
0
ファイル: test_https.py プロジェクト: balagopalraj/clearlinux
    def test_assert_hostname_false(self):
        https_pool = HTTPSConnectionPool("localhost", self.port, cert_reqs="CERT_REQUIRED", ca_certs=DEFAULT_CA)

        https_pool.assert_hostname = False
        https_pool.request("GET", "/")