Tests: unit module refactoring.

This commit is contained in:
Andrey Zelenkov
2019-03-28 18:43:13 +03:00
parent 06b9a11494
commit 19eba1730a
33 changed files with 931 additions and 918 deletions

View File

@@ -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()