From fc81f18864c10367bc66d55d09838ea3d49e1da8 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Thu, 14 May 2015 11:53:48 -0700 Subject: [PATCH] Clarify that these test files never exist --- letsencrypt/tests/renewer_test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/letsencrypt/tests/renewer_test.py b/letsencrypt/tests/renewer_test.py index 7845d6aed..6fdd280c3 100644 --- a/letsencrypt/tests/renewer_test.py +++ b/letsencrypt/tests/renewer_test.py @@ -78,9 +78,12 @@ class RenewableCertTests(unittest.TestCase): from letsencrypt import storage defaults = 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: - config["cert"] = "/tmp/" + kind + ".pem" - config.filename = "/tmp/sillyfile" + config["cert"] = "nonexistent_" + kind + ".pem" + config.filename = "nonexistent_sillyfile" self.assertRaises(ValueError, storage.RenewableCert, config, defaults) self.assertRaises(TypeError, storage.RenewableCert, "fun", defaults)