add test for domain before multiple webroots

This commit is contained in:
Brad Warren 2016-04-04 13:38:53 -07:00
parent ed0c381031
commit c716003b1f

View file

@ -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