OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
ndg
/
httpsclient
/
test
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/12/2020 04:36:18 PM
rwxr-xr-x
📄
README
643 bytes
09/01/2017 10:56:40 AM
rw-r--r--
📄
__init__.py
1.05 KB
09/01/2017 10:56:40 AM
rw-r--r--
📁
__pycache__
-
07/12/2020 04:36:18 PM
rwxr-xr-x
📁
pki
-
07/12/2020 04:36:14 PM
rwxr-xr-x
📁
scripts
-
07/12/2020 04:36:14 PM
rwxr-xr-x
📄
test_https.py
4.38 KB
09/01/2017 10:56:40 AM
rw-r--r--
📄
test_urllib2.py
1.77 KB
09/01/2017 10:56:40 AM
rw-r--r--
📄
test_utils.py
2.05 KB
09/01/2017 10:56:40 AM
rw-r--r--
Editing: __init__.py
Close
"""Unit tests package for ndg_httpsclient PyOpenSSL utility to make a httplib-like interface suitable for use with urllib2 """ __author__ = "P J Kershaw (STFC)" __date__ = "05/01/12" __copyright__ = "(C) 2012 Science and Technology Facilities Council" __license__ = "BSD - see LICENSE file in top-level directory" __contact__ = "Philip.Kershaw@stfc.ac.uk" __revision__ = '$Id$' import os import unittest class Constants(object): '''Convenience base class from which other unit tests can extend. Its sets the generic data directory path''' PORT = 4443 PORT2 = 4444 HOSTNAME = 'localhost' TEST_URI = 'https://%s:%d' % (HOSTNAME, PORT) TEST_URI2 = 'https://%s:%d' % (HOSTNAME, PORT2) UNITTEST_DIR = os.path.dirname(os.path.abspath(__file__)) CACERT_DIR = os.path.join(UNITTEST_DIR, 'pki', 'ca') SSL_CERT_FILENAME = 'localhost.crt' SSL_CERT_FILEPATH = os.path.join(UNITTEST_DIR, 'pki', SSL_CERT_FILENAME) SSL_PRIKEY_FILENAME = 'localhost.key' SSL_PRIKEY_FILEPATH = os.path.join(UNITTEST_DIR, 'pki', SSL_PRIKEY_FILENAME)