Fixing tests

This commit is contained in:
Amjad Mashaal
2016-03-14 15:11:52 +02:00
parent 4c07feef70
commit aefab5cc32
+4 -1
View File
@@ -126,7 +126,10 @@ class GetAuthorizationsTest(unittest.TestCase):
for achall in self.mock_auth.cleanup.call_args[0][0]:
self.assertTrue(achall.typ in ["tls-sni-01", "http-01", "dns"])
self.assertEqual(len(authzr), 1)
# Length of authorizations list
self.assertEqual(len(authzr[0]), 1)
# Length of valid domains list
self.assertEqual(len(authzr[1]), 1)
@mock.patch("letsencrypt.auth_handler.AuthHandler._poll_challenges")
def test_name3_tls_sni_01_3(self, mock_poll):