mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 14:26:10 -04:00
test add_parser_arguments
This commit is contained in:
parent
b395b72d1b
commit
192f0f60da
1 changed files with 9 additions and 0 deletions
|
|
@ -28,6 +28,15 @@ class TestPostfixConfigGenerator(unittest.TestCase):
|
|||
def setUp(self):
|
||||
self.postfix_dir = 'tests/'
|
||||
|
||||
def test_add_parser_arguments(self):
|
||||
mock_add = mock.MagicMock()
|
||||
|
||||
from certbot_postfix import installer
|
||||
installer.Installer.add_parser_arguments(mock_add)
|
||||
|
||||
for call in mock_add.call_args_list:
|
||||
self.assertTrue(call[0][0] in ('config-dir', 'config-utility'))
|
||||
|
||||
def testGetAllNames(self):
|
||||
sorted_names = ['fubard.org', 'mail.fubard.org']
|
||||
with mock.patch('certbot_postfix.installer.open') as mock_open:
|
||||
|
|
|
|||
Loading…
Reference in a new issue