mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
assert we log
This commit is contained in:
parent
92aa5d8670
commit
dc85f0c45f
1 changed files with 3 additions and 1 deletions
|
|
@ -1311,8 +1311,10 @@ class TestHandleException(unittest.TestCase):
|
|||
class TestAcquireFileLock(unittest.TestCase):
|
||||
"""Test main.acquire_file_lock."""
|
||||
|
||||
def test_bad_path(self):
|
||||
@mock.patch('certbot.main.logger')
|
||||
def test_bad_path(self, mock_logger):
|
||||
lock = main.acquire_file_lock(os.getcwd())
|
||||
self.assertTrue(mock_logger.warning.called)
|
||||
self.assertFalse(lock.acquired)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue