From 57d5685de131074c10f9b6ed1dcdfae8409939f7 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Tue, 16 Oct 2018 06:25:41 -0700 Subject: [PATCH] mock the right object --- certbot/tests/main_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot/tests/main_test.py b/certbot/tests/main_test.py index 1c26d971a..62043c8f1 100644 --- a/certbot/tests/main_test.py +++ b/certbot/tests/main_test.py @@ -517,7 +517,7 @@ class MainTest(test_util.ConfigTestCase): # pylint: disable=too-many-public-met '--work-dir', self.config.work_dir, '--logs-dir', self.config.logs_dir, '--text'] - self.mock_sleep = mock.patch('certbot.time.sleep').start() + self.mock_sleep = mock.patch('time.sleep').start() def tearDown(self): # Reset globals in cli