mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
100% coverage for recovery_token
This commit is contained in:
parent
dd3e10eb42
commit
d4c1ceccac
1 changed files with 5 additions and 0 deletions
|
|
@ -42,6 +42,11 @@ class RecoveryTokenTest(unittest.TestCase):
|
|||
# Shouldn't throw an error
|
||||
self.rec_token.cleanup(challenge_util.RecTokenChall("example4.com"))
|
||||
|
||||
# SHOULD throw an error (OSError other than nonexistent file)
|
||||
self.assertRaises(
|
||||
OSError, self.rec_token.cleanup,
|
||||
challenge_util.RecTokenChall("a"+"r"*10000+".com"))
|
||||
|
||||
def test_perform_stored(self):
|
||||
self.rec_token.store_token("example4.com", 444)
|
||||
response = self.rec_token.perform(
|
||||
|
|
|
|||
Loading…
Reference in a new issue