diff --git a/letsencrypt-apache/letsencrypt_apache/tests/configurator_test.py b/letsencrypt-apache/letsencrypt_apache/tests/configurator_test.py index 00a98e33a..002520a05 100644 --- a/letsencrypt-apache/letsencrypt_apache/tests/configurator_test.py +++ b/letsencrypt-apache/letsencrypt_apache/tests/configurator_test.py @@ -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