mirror of
https://github.com/certbot/certbot.git
synced 2026-04-22 14:47:13 -04:00
add test for domain before multiple webroots
This commit is contained in:
parent
ed0c381031
commit
c716003b1f
1 changed files with 6 additions and 0 deletions
|
|
@ -243,6 +243,12 @@ class AuthenticatorTest(unittest.TestCase):
|
|||
self.assertEqual(self.auth.config.webroot_map,
|
||||
self.config.webroot_map)
|
||||
|
||||
def test_domain_before_webroot_error(self):
|
||||
self.assertRaises(errors.PluginError, self.parser.parse_args,
|
||||
"-d foo -w bar -w baz".split())
|
||||
self.assertRaises(errors.PluginError, self.parser.parse_args,
|
||||
"-d foo -w bar -d baz -w qux".split())
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main() # pragma: no cover
|
||||
|
|
|
|||
Loading…
Reference in a new issue