Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix strange tests

  • Loading branch information...
commit 71b402a7d7952f8d05dfc97ff3114230bcd1b1ed 1 parent 1c0a532
@prijutme4ty prijutme4ty authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 test_docopt.py
View
6 test_docopt.py
@@ -68,7 +68,7 @@ def test_commands():
assert docopt('Usage: prog (add|rm)', 'rm') == {'add': False, 'rm': True}
assert docopt('Usage: prog a b', 'a b') == {'a': True, 'b': True}
with raises(DocoptExit):
- assert docopt('Usage: prog a b', 'b a')
+ docopt('Usage: prog a b', 'b a')
def test_parse_doc_options():
@@ -526,7 +526,7 @@ def test_count_multiple_flags():
assert docopt('usage: prog [-vv]', '-v') == {'-v': 1}
assert docopt('usage: prog [-vv]', '-vv') == {'-v': 2}
with raises(DocoptExit):
- assert docopt('usage: prog [-vv]', '-vvv')
+ docopt('usage: prog [-vv]', '-vvv')
assert docopt('usage: prog [-v | -vv | -vvv]', '-vvv') == {'-v': 3}
assert docopt('usage: prog -v...', '-vvvvvv') == {'-v': 6}
assert docopt('usage: prog [--ver --ver]', '--ver --ver') == {'--ver': 2}
@@ -538,7 +538,7 @@ def test_count_multiple_commands():
assert docopt('usage: prog [go go]', 'go') == {'go': 1}
assert docopt('usage: prog [go go]', 'go go') == {'go': 2}
with raises(DocoptExit):
- assert docopt('usage: prog [go go]', 'go go go')
+ docopt('usage: prog [go go]', 'go go go')
assert docopt('usage: prog go...', 'go go go go go') == {'go': 5}
Please sign in to comment.
Something went wrong with that request. Please try again.