Enable unit tests of certbot core on Python 3

This commit is contained in:
Yen Chi Hsuan
2016-08-06 21:09:43 +08:00
parent e1d8ba4977
commit fe76d558ed
26 changed files with 142 additions and 99 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import socket
from cryptography.hazmat.primitives import serialization
import pyrfc3339
import pytz
import six
import zope.component
from acme import fields as acme_fields
@@ -108,7 +109,7 @@ class AccountMemoryStorage(interfaces.AccountStorage):
self.accounts = initial_accounts if initial_accounts is not None else {}
def find_all(self):
return self.accounts.values()
return list(six.itervalues(self.accounts))
def save(self, account):
if account.id in self.accounts: