1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-23 07:20:55 +03:00

Merge pull request #1005 from kuba/pep8

pep8 love
This commit is contained in:
bmw
2015-10-16 17:45:45 -07:00
4 changed files with 5 additions and 5 deletions

View File

@@ -555,7 +555,7 @@ class HelpfulArgumentParser(object):
for i, token in enumerate(args):
if token in VERBS:
reordered = args[:i] + args[i+1:] + [args[i]]
reordered = args[:i] + args[(i + 1):] + [args[i]]
self.verb = token
return reordered

View File

@@ -311,7 +311,7 @@ class Client(object):
return os.path.abspath(act_cert_path), cert_chain_abspath
def deploy_certificate(self, domains, privkey_path,
cert_path, chain_path, fullchain_path):
cert_path, chain_path, fullchain_path):
"""Install certificate
:param list domains: list of domains to install the certificate

View File

@@ -31,7 +31,7 @@ class Installer(common.Plugin):
return []
def deploy_cert(self, domain, cert_path, key_path,
chain_path=None, fullchain_path=None):
chain_path=None, fullchain_path=None):
pass # pragma: no cover
def enhance(self, domain, enhancement, options=None):

View File

@@ -151,8 +151,8 @@ class ClientTest(unittest.TestCase):
installer = mock.MagicMock()
self.client.installer = installer
self.client.deploy_certificate(["foo.bar"], "key", "cert", "chain",
"fullchain")
self.client.deploy_certificate(
["foo.bar"], "key", "cert", "chain", "fullchain")
installer.deploy_cert.assert_called_once_with(
cert_path=os.path.abspath("cert"),
chain_path=os.path.abspath("chain"),