mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
added test for new temp elif
This commit is contained in:
parent
ab32e2fd26
commit
ec28094ae2
1 changed files with 6 additions and 0 deletions
|
|
@ -139,6 +139,12 @@ class TwoVhost80Test(util.ApacheTest):
|
|||
self.assertFalse(self.vh_truth[0].ssl)
|
||||
self.assertTrue(chosen_vhost.ssl)
|
||||
|
||||
@mock.patch("letsencrypt_apache.display_ops.select_vhost")
|
||||
def test_choose_vhost_select_vhost_with_temp(self, mock_select):
|
||||
mock_select.return_value = self.vh_truth[0]
|
||||
chosen_vhost = self.config.choose_vhost("none.com", temp=True)
|
||||
self.assertEqual(self.vh_truth[0], chosen_vhost)
|
||||
|
||||
@mock.patch("letsencrypt_apache.display_ops.select_vhost")
|
||||
def test_choose_vhost_select_vhost_conflicting_non_ssl(self, mock_select):
|
||||
mock_select.return_value = self.vh_truth[3]
|
||||
|
|
|
|||
Loading…
Reference in a new issue