Adding tests

This commit is contained in:
Amjad Mashaal
2016-03-21 01:12:59 +02:00
parent 4d6a1ee7ff
commit 6f25005559
4 changed files with 13 additions and 4 deletions
+3 -4
View File
@@ -66,7 +66,6 @@ class AuthHandler(object):
self._choose_challenges(domains)
# While there are still challenges remaining...
while self.achalls:
resp = self._solve_challenges()
@@ -80,11 +79,11 @@ class AuthHandler(object):
# Only return valid authorizations
retVal = [authzr for authzr in self.authzr.values()
if authzr.body.status == messages.STATUS_VALID]
if authzr.body.status == messages.STATUS_VALID]
if len(retVal) <= 0:
logger.critical("Challenges failed for all domains")
raise
raise errors.AuthorizationError(
"Challenges failed for all domains")
return retVal