summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls.py
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2019-03-28 18:43:13 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2019-03-28 18:43:13 +0300
commit19eba1730a1ca839ed62a37f34c204f580d1b653 (patch)
treee9f54ca64fc7db66e33350826c76ef3814cfa4a0 /test/test_tls.py
parent06b9a11494561e309114266bfe3bb001352b596c (diff)
downloadunit-19eba1730a1ca839ed62a37f34c204f580d1b653.tar.gz
unit-19eba1730a1ca839ed62a37f34c204f580d1b653.tar.bz2
Tests: unit module refactoring.
Diffstat (limited to 'test/test_tls.py')
-rw-r--r--test/test_tls.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/test_tls.py b/test/test_tls.py
index 8b112f4e..954387d7 100644
--- a/test/test_tls.py
+++ b/test/test_tls.py
@@ -3,12 +3,13 @@ import ssl
import time
import subprocess
import unittest
-import unit
+from unit.applications.tls import TestApplicationTLS
+from unit.main import TestUnit
-class TestUnitTLS(unit.TestUnitApplicationTLS):
+class TestTLS(TestApplicationTLS):
def setUpClass():
- unit.TestUnit().check_modules('python', 'openssl')
+ TestUnit().check_modules('python', 'openssl')
def findall(self, pattern):
with open(self.testdir + '/unit.log', 'r', errors='ignore') as f:
@@ -585,4 +586,4 @@ basicConstraints = critical,CA:TRUE"""
)
if __name__ == '__main__':
- TestUnitTLS.main()
+ TestTLS.main()