mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Add TestAcquireFileLock
This commit is contained in:
parent
a48283c163
commit
92aa5d8670
1 changed files with 8 additions and 0 deletions
|
|
@ -1308,5 +1308,13 @@ class TestHandleException(unittest.TestCase):
|
|||
traceback.format_exception_only(KeyboardInterrupt, interrupt)))
|
||||
|
||||
|
||||
class TestAcquireFileLock(unittest.TestCase):
|
||||
"""Test main.acquire_file_lock."""
|
||||
|
||||
def test_bad_path(self):
|
||||
lock = main.acquire_file_lock(os.getcwd())
|
||||
self.assertFalse(lock.acquired)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main() # pragma: no cover
|
||||
|
|
|
|||
Loading…
Reference in a new issue