Throw in an extra test for good measure

This commit is contained in:
Peter Eckersley
2016-02-07 19:14:24 -08:00
parent 7b0e701731
commit f3655f9ab3
+6
View File
@@ -127,6 +127,12 @@ class ClientTest(unittest.TestCase):
# and that the cert was obtained correctly
self._check_obtain_certificate()
# Now provoke an inconsistent domains error...
self.client.config.domains.append("hippopotamus.io")
self.assertRaises(errors.ConfigurationError,
self.client.obtain_certificate_from_csr, mock_process_domain)
@mock.patch("letsencrypt.client.crypto_util")
def test_obtain_certificate(self, mock_crypto_util):
self._mock_obtain_certificate()