mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 11:42:17 +02:00
Add ChallangeResponseTest
This commit is contained in:
@@ -18,6 +18,13 @@ KEY = jose.HashableRSAKey(Crypto.PublicKey.RSA.importKey(
|
|||||||
'acme.jose', os.path.join('testdata', 'rsa512_key.pem'))))
|
'acme.jose', os.path.join('testdata', 'rsa512_key.pem'))))
|
||||||
|
|
||||||
|
|
||||||
|
class ChallengeResponseTest(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_from_json_none(self):
|
||||||
|
from acme.challenges import ChallengeResponse
|
||||||
|
self.assertTrue(ChallengeResponse.from_json(None) is None)
|
||||||
|
|
||||||
|
|
||||||
class SimpleHTTPTest(unittest.TestCase):
|
class SimpleHTTPTest(unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user