Skip to content

Commit e76d19e

Browse files
committed
eAB test cases
1 parent 3a2c01f commit e76d19e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/test_module.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,23 @@ def test_account_key_domain(self):
216216
self.assertIsInstance(result, ValueError)
217217
self.assertIn(self.account_key_error, result.args[0])
218218

219-
def test_contact(self):
220-
""" Make sure optional contact details can be set """
219+
def test_contact_update(self):
220+
""" Make sure optional contact details can be updated """
221221
# add a logging handler that captures the info log output
222222
log_output = StringIO()
223223
debug_handler = logging.StreamHandler(log_output)
224224
acme_tiny.LOGGER.addHandler(debug_handler)
225225
# call acme_tiny with new contact details
226226
old_stdout = sys.stdout
227227
sys.stdout = StringIO()
228+
result = acme_tiny.main([
229+
"--account-key", self.KEYS['account_key'].name,
230+
"--csr", self.KEYS['domain_csr'].name,
231+
"--acme-dir", self.tempdir,
232+
"--directory-url", self.DIR_URL,
233+
"--check-port", self.check_port,
234+
"--contact", "mailto:[email protected]", "mailto:[email protected]",
235+
])
228236
result = acme_tiny.main([
229237
"--account-key", self.KEYS['account_key'].name,
230238
"--csr", self.KEYS['domain_csr'].name,

0 commit comments

Comments
 (0)