mock the right object

This commit is contained in:
Seth Schoen 2018-10-16 06:25:41 -07:00
parent e039920a99
commit 57d5685de1

View file

@ -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