test_tls.py (1706:a1da56837554) test_tls.py (1730:44912af5b3e6)
1import io
2import re
3import ssl
4import subprocess
5
6import pytest
7
1import io
2import re
3import ssl
4import subprocess
5
6import pytest
7
8from conftest import option
9from conftest import skip_alert
10from unit.applications.tls import TestApplicationTLS
8from conftest import skip_alert
9from unit.applications.tls import TestApplicationTLS
10from unit.option import option
11
12
13class TestTLS(TestApplicationTLS):
14 prerequisites = {'modules': {'python': 'any', 'openssl': 'any'}}
15
16 def findall(self, pattern):
17 with open(option.temp_dir + '/unit.log', 'r', errors='ignore') as f:
18 return re.findall(pattern, f.read())

--- 586 unchanged lines hidden ---
11
12
13class TestTLS(TestApplicationTLS):
14 prerequisites = {'modules': {'python': 'any', 'openssl': 'any'}}
15
16 def findall(self, pattern):
17 with open(option.temp_dir + '/unit.log', 'r', errors='ignore') as f:
18 return re.findall(pattern, f.read())

--- 586 unchanged lines hidden ---