MCPcopy
hub / github.com/docopt/docopt / test_allow_double_dash

Function test_allow_double_dash

test_docopt.py:382–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

380
381
382def test_allow_double_dash():
383 assert docopt('usage: prog [-o] [--] <arg>\n\n-o',
384 '-- -o') == {'-o': False, '<arg>': '-o', '--': True}
385 assert docopt('usage: prog [-o] [--] <arg>\n\n-o',
386 '-o 1') == {'-o': True, '<arg>': '1', '--': False}
387 with raises(DocoptExit):
388 docopt('usage: prog [-o] <arg>\n\n-o', '-- -o') # '--' not allowed
389
390
391def test_docopt():

Callers

nothing calls this directly

Calls 1

docoptFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…