-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a2c01f
commit e76d19e
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,15 +216,23 @@ def test_account_key_domain(self): | |
self.assertIsInstance(result, ValueError) | ||
self.assertIn(self.account_key_error, result.args[0]) | ||
|
||
def test_contact(self): | ||
""" Make sure optional contact details can be set """ | ||
def test_contact_update(self): | ||
""" Make sure optional contact details can be updated """ | ||
# add a logging handler that captures the info log output | ||
log_output = StringIO() | ||
debug_handler = logging.StreamHandler(log_output) | ||
acme_tiny.LOGGER.addHandler(debug_handler) | ||
# call acme_tiny with new contact details | ||
old_stdout = sys.stdout | ||
sys.stdout = StringIO() | ||
result = acme_tiny.main([ | ||
"--account-key", self.KEYS['account_key'].name, | ||
"--csr", self.KEYS['domain_csr'].name, | ||
"--acme-dir", self.tempdir, | ||
"--directory-url", self.DIR_URL, | ||
"--check-port", self.check_port, | ||
"--contact", "mailto:[email protected]", "mailto:[email protected]", | ||
]) | ||
result = acme_tiny.main([ | ||
"--account-key", self.KEYS['account_key'].name, | ||
"--csr", self.KEYS['domain_csr'].name, | ||
|