mirror of
https://github.com/certbot/certbot.git
synced 2026-06-11 09:40:41 -04:00
Added test for mod_macro check in domain names
This commit is contained in:
parent
88b89a04b1
commit
f0c059752f
1 changed files with 5 additions and 0 deletions
|
|
@ -183,6 +183,11 @@ class TwoVhost80Test(util.ApacheTest):
|
|||
self.assertEqual(len(self.vh_truth)-1,
|
||||
len(self.config._without_modmacro(self.vh_truth)))
|
||||
|
||||
def test_is_mod_macro(self):
|
||||
# pylint: disable=protected-access
|
||||
self.assertEqual(self.config._is_mod_macro("$domain"), True)
|
||||
self.assertEqual(self.config._is_mod_macro("www.example.com"), False)
|
||||
|
||||
def test_non_default_vhosts(self):
|
||||
# pylint: disable=protected-access
|
||||
self.assertEqual(len(self.config._non_default_vhosts()), 4)
|
||||
|
|
|
|||
Loading…
Reference in a new issue