MCPcopy Index your code
hub / github.com/docopt/docopt / test_required_match

Function test_required_match

test_docopt.py:199–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197
198
199def test_required_match():
200 assert Required(Option('-a')).match([Option('-a')]) == \
201 (True, [], [Option('-a')])
202 assert Required(Option('-a')).match([]) == (False, [], [])
203 assert Required(Option('-a')).match([Option('-x')]) == \
204 (False, [Option('-x')], [])
205 assert Required(Option('-a'), Option('-b')).match([Option('-a')]) == \
206 (False, [Option('-a')], [])
207
208
209def test_either_match():

Callers

nothing calls this directly

Calls 3

RequiredClass · 0.90
OptionClass · 0.90
matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…