Make supported_challenges return a list, not set

This commit is contained in:
Joe Ranweiler
2015-12-11 18:00:33 -08:00
parent dbf181ebac
commit c66c6bae1d
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -173,8 +173,8 @@ class Authenticator(common.Plugin):
@property
def supported_challenges(self):
"""Challenges supported by this plugin."""
return set(challenges.Challenge.TYPES[name] for name in
self.conf("supported-challenges").split(","))
return [challenges.Challenge.TYPES[name] for name in
self.conf("supported-challenges").split(",")]
@property
def _necessary_ports(self):
+2 -2
View File
@@ -98,12 +98,12 @@ class AuthenticatorTest(unittest.TestCase):
def test_supported_challenges(self):
self.assertEqual(self.auth.supported_challenges,
set([challenges.TLSSNI01, challenges.HTTP01]))
[challenges.TLSSNI01, challenges.HTTP01])
def test_supported_challenges_configured(self):
self.config.standalone_supported_challenges = "tls-sni-01"
self.assertEqual(self.auth.supported_challenges,
set([challenges.TLSSNI01]))
[challenges.TLSSNI01])
def test_more_info(self):
self.assertTrue(isinstance(self.auth.more_info(), six.string_types))