1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

Fixed up remaining pylint errors

This commit is contained in:
James Kasten
2014-12-14 02:51:17 -08:00
parent 52555c2337
commit d53889b617

View File

@@ -11,13 +11,12 @@ from letsencrypt.client import client
from letsencrypt.client import CONFIG
from letsencrypt.client import le_util
# pylint: disable=too-few-public-methods
class DvnsiGenCertTest(unittest.TestCase):
"""Tests for letsencrypt.client.challenge_util.dvsni_gen_cert."""
def test_standard(self):
"""Basic test for straightline code."""
# This is a helper function that can be used for handling
# open context managers more elegantly. It avoids dealing with
# __enter__ and __exit__ calls.
@@ -46,6 +45,7 @@ class DvnsiGenCertTest(unittest.TestCase):
m_open().write.call_args[0][0], domain, nonce, ext)
def _standard_check_cert(self, pem, domain, nonce, ext):
"""Check the certificate fields."""
dns_regex = r"DNS:([^, $]*)"
cert = M2Crypto.X509.load_cert_string(pem)
self.assertEqual(
@@ -58,6 +58,7 @@ class DvnsiGenCertTest(unittest.TestCase):
self.assertEqual(exp_sans, act_sans)
# pylint: disable= no-self-use
def _call(self, filepath, name, r_b64, nonce, key):
from letsencrypt.client.challenge_util import dvsni_gen_cert
return dvsni_gen_cert(filepath, name, r_b64, nonce, key)