Test bad csr

This commit is contained in:
Brad Warren 2016-05-20 17:00:06 -07:00
parent 953d4957b8
commit 2c4c8c081c

View file

@ -192,6 +192,11 @@ class ImportCSRFileTest(unittest.TestCase):
["example.com"],),
self._call(csrfile, data))
def test_bad_csr(self):
self.assertRaises(errors.Error, self._call,
test_util.vector_path('cert.pem'),
test_util.load_vector('cert.pem'))
class MakeKeyTest(unittest.TestCase): # pylint: disable=too-few-public-methods
"""Tests for certbot.crypto_util.make_key."""