MCPcopy Create free account
hub / github.com/apache/qpid-proton / _testpath

Function _testpath

python/tests/proton_tests/ssl.py:28–39  ·  view source on GitHub ↗

Set the full path to the certificate,keyfile, etc. for the test.

(file)

Source from the content-addressed store, hash-verified

26
27
28def _testpath(file):
29 """ Set the full path to the certificate,keyfile, etc. for the test.
30 """
31 if os.name == "nt":
32 if file.find("private-key") != -1:
33 # The private key is not in a separate store
34 return None
35 # Substitute pkcs#12 equivalent for the CA/key store
36 if file.endswith(".pem"):
37 file = file[:-4] + ".p12"
38 return os.path.join(os.path.dirname(__file__),
39 "ssl_db/%s" % file)
40
41
42class SslTest(common.Test):

Callers 4

test_userMethod · 0.85
test_sslMethod · 0.85
test_ssl_externalMethod · 0.85
test_ssl_plainMethod · 0.85

Calls 2

findMethod · 0.80
joinMethod · 0.80

Tested by 4

test_userMethod · 0.68
test_sslMethod · 0.68
test_ssl_externalMethod · 0.68
test_ssl_plainMethod · 0.68