[svn r63353] better command option handling

--HG--
branch : trunk
This commit is contained in:
hpk
2009-03-26 13:21:05 +01:00
parent 9b5e15bebe
commit cd3e86d185
2 changed files with 5 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ class TestParser:
def test_parser_addoption(self):
parser = parseopt.Parser()
group = parser.getgroup("misc")
group = parser.getgroup("custom options")
assert len(group.options) == 0
group.addoption("--option1", action="store_true")
assert len(group.options) == 1