mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
fix tests
This commit is contained in:
parent
80ce6e2942
commit
4bae5b432c
1 changed files with 6 additions and 6 deletions
|
|
@ -188,12 +188,12 @@ class TwoVhost80Test(util.ApacheTest):
|
|||
def test_find_best_vhost(self):
|
||||
# pylint: disable=protected-access
|
||||
self.assertEqual(
|
||||
self.vh_truth[3], self.config._find_best_vhost("letsencrypt.demo"))
|
||||
(self.vh_truth[3], True), self.config._find_best_vhost("letsencrypt.demo"))
|
||||
self.assertEqual(
|
||||
self.vh_truth[0],
|
||||
(self.vh_truth[0], True),
|
||||
self.config._find_best_vhost("encryption-example.demo"))
|
||||
self.assertTrue(
|
||||
self.config._find_best_vhost("does-not-exist.com") is None)
|
||||
self.assertEqual(
|
||||
self.config._find_best_vhost("does-not-exist.com"), (None, True))
|
||||
|
||||
def test_find_best_vhost_variety(self):
|
||||
# pylint: disable=protected-access
|
||||
|
|
@ -202,7 +202,7 @@ class TwoVhost80Test(util.ApacheTest):
|
|||
obj.Addr(("zombo.com",))]),
|
||||
True, False)
|
||||
self.config.vhosts.append(ssl_vh)
|
||||
self.assertEqual(self.config._find_best_vhost("zombo.com"), ssl_vh)
|
||||
self.assertEqual(self.config._find_best_vhost("zombo.com"), (ssl_vh, True))
|
||||
|
||||
def test_find_best_vhost_default(self):
|
||||
# pylint: disable=protected-access
|
||||
|
|
@ -213,7 +213,7 @@ class TwoVhost80Test(util.ApacheTest):
|
|||
]
|
||||
|
||||
self.assertEqual(
|
||||
self.config._find_best_vhost("example.demo"), self.vh_truth[2])
|
||||
self.config._find_best_vhost("example.demo"), (self.vh_truth[2], True))
|
||||
|
||||
def test_non_default_vhosts(self):
|
||||
# pylint: disable=protected-access
|
||||
|
|
|
|||
Loading…
Reference in a new issue