@@ -216,15 +216,23 @@ def test_account_key_domain(self):
216
216
self .assertIsInstance (result , ValueError )
217
217
self .assertIn (self .account_key_error , result .args [0 ])
218
218
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 """
221
221
# add a logging handler that captures the info log output
222
222
log_output = StringIO ()
223
223
debug_handler = logging .StreamHandler (log_output )
224
224
acme_tiny .LOGGER .addHandler (debug_handler )
225
225
# call acme_tiny with new contact details
226
226
old_stdout = sys .stdout
227
227
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
+ ])
228
236
result = acme_tiny .main ([
229
237
"--account-key" , self .KEYS ['account_key' ].name ,
230
238
"--csr" , self .KEYS ['domain_csr' ].name ,
0 commit comments