From 06a3f54c9210ecaba0c464eafb7dbebd145cd327 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Mon, 11 May 2015 11:38:50 -0700 Subject: [PATCH] Updated target for @mock.patch in new storage.py --- letsencrypt/client/tests/renewer_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/letsencrypt/client/tests/renewer_test.py b/letsencrypt/client/tests/renewer_test.py index dd6c5fa63..c08c7dc74 100644 --- a/letsencrypt/client/tests/renewer_test.py +++ b/letsencrypt/client/tests/renewer_test.py @@ -342,7 +342,7 @@ class RenewableCertTests(unittest.TestCase): self.assertEqual(result.utcoffset(), datetime.timedelta(0)) # 2014-12-18 22:34:45+00:00 = Unix time 1418942085 - @mock.patch("letsencrypt.client.renewer.datetime") + @mock.patch("letsencrypt.client.storage.datetime") def test_should_autodeploy(self, mock_datetime): # pylint: disable=too-many-statements # Autodeployment turned off @@ -411,7 +411,7 @@ class RenewableCertTests(unittest.TestCase): self.test_rc.configuration["deploy_before_expiry"] = "300 months" self.assertTrue(self.test_rc.should_autodeploy()) - @mock.patch("letsencrypt.client.renewer.datetime") + @mock.patch("letsencrypt.client.storage.datetime") @mock.patch("letsencrypt.client.storage.RenewableCert.ocsp_revoked") def test_should_autorenew(self, mock_ocsp, mock_datetime): # pylint: disable=too-many-statements