mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Clarify that these test files never exist
This commit is contained in:
@@ -78,9 +78,12 @@ class RenewableCertTests(unittest.TestCase):
|
|||||||
from letsencrypt import storage
|
from letsencrypt import storage
|
||||||
defaults = configobj.ConfigObj()
|
defaults = configobj.ConfigObj()
|
||||||
config = configobj.ConfigObj()
|
config = configobj.ConfigObj()
|
||||||
|
# These files don't exist and aren't created here; the point of the test
|
||||||
|
# is to confirm that the constructor rejects them outright because of
|
||||||
|
# the configfile's name.
|
||||||
for kind in ALL_FOUR:
|
for kind in ALL_FOUR:
|
||||||
config["cert"] = "/tmp/" + kind + ".pem"
|
config["cert"] = "nonexistent_" + kind + ".pem"
|
||||||
config.filename = "/tmp/sillyfile"
|
config.filename = "nonexistent_sillyfile"
|
||||||
self.assertRaises(ValueError, storage.RenewableCert, config, defaults)
|
self.assertRaises(ValueError, storage.RenewableCert, config, defaults)
|
||||||
self.assertRaises(TypeError, storage.RenewableCert, "fun", defaults)
|
self.assertRaises(TypeError, storage.RenewableCert, "fun", defaults)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user