Add main command

This commit is contained in:
Adrien Ferrand 2019-05-15 18:05:19 +02:00
parent 8e01f7f561
commit d0ce83453a
2 changed files with 10 additions and 0 deletions

View file

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

View file

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