mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 14:54:24 -04:00
Add main command
This commit is contained in:
parent
8e01f7f561
commit
d0ce83453a
2 changed files with 10 additions and 0 deletions
|
|
@ -1,4 +1,6 @@
|
|||
"""Tests for certbot.compat."""
|
||||
import unittest
|
||||
|
||||
import certbot.tests.util as test_util
|
||||
from certbot.compat import misc
|
||||
from certbot.compat import os
|
||||
|
|
@ -19,3 +21,7 @@ class OsReplaceTest(test_util.TempDirTestCase):
|
|||
|
||||
self.assertFalse(os.path.exists(src))
|
||||
self.assertTrue(os.path.exists(dst))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main() # pragma: no cover
|
||||
|
|
|
|||
|
|
@ -36,3 +36,7 @@ class FilesystemTest(TempDirTestCase):
|
|||
dacl = filesystem._generate_dacl(admin_user, 0o700) # pylint: disable=protected-access
|
||||
# We expect only two ACE: one for admins, one for system, since the user is also an admin
|
||||
self.assertEqual(dacl.GetAceCount(), 2)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main() # pragma: no cover
|
||||
|
|
|
|||
Loading…
Reference in a new issue