Commit c08f207e authored by Łukasz Nowak's avatar Łukasz Nowak

test: Adapt to OpenSSl 1.1.x result

parent e2d4843c
......@@ -660,7 +660,7 @@ class GenerateSignatureScriptTest(unittest.TestCase):
today = datetime.date.today()
result = subprocess.check_output(['openssl', 'x509', '-noout', '-subject',
'-in', self.certificate], universal_newlines=True)
self.assertEqual('subject= /CN=%s' % self.common_name, result.strip())
self.assertEqual('subject=CN = %s' % self.common_name, result.strip())
result = subprocess.check_output(['openssl', 'x509', '-noout', '-enddate',
'-in', self.certificate], universal_newlines=True)
self.assertIn(' %s ' % (today.year + 100), result)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment