mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Fixed pylint issues
This commit is contained in:
parent
ffb46d00e9
commit
76d2d45f8d
1 changed files with 8 additions and 7 deletions
|
|
@ -99,20 +99,21 @@ class TestAddGroup(unittest.TestCase):
|
|||
# The user request help on run. A topic that given somewhere in the
|
||||
# args won't be added to the groups in the parser.
|
||||
arg_parser = HelpfulArgumentParser(['--help', 'run'], {})
|
||||
new_group = arg_parser.add_group("auth",
|
||||
description="description of auth")
|
||||
self.assertIs(new_group._topic, "auth")
|
||||
#new_group = arg_parser.add_group("auth",
|
||||
# description="description of auth")
|
||||
#self.assertIs(new_group._topic, "auth")
|
||||
self.assertEqual(arg_parser.groups, {})
|
||||
|
||||
def test_add_group_topic_requested_help(self):
|
||||
arg_parser = HelpfulArgumentParser(['--help', 'run'], {})
|
||||
new_group = arg_parser.add_group("run",
|
||||
description="description of run")
|
||||
self.assertIs(new_group._topic, "run")
|
||||
#new_group = arg_parser.add_group("run",
|
||||
# description="description of run")
|
||||
#self.assertIs(new_group._topic, "run")
|
||||
self.assertTrue(arg_parser.groups["run"])
|
||||
arg_parser.add_group("certonly", description="description of certonly")
|
||||
with self.assertRaises(KeyError):
|
||||
arg_parser.groups["certonly"]
|
||||
self.assertFalse(arg_parser.groups["certonly"])
|
||||
|
||||
|
||||
class TestParseArgsErrors(unittest.TestCase):
|
||||
'''Tests for errors that should be met for some cases in parse_args method
|
||||
|
|
|
|||
Loading…
Reference in a new issue