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

Function test_pattern_fix_identities_2

test_docopt.py:332–337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

330
331
332def test_pattern_fix_identities_2():
333 pattern = Required(Optional(Argument('X'), Argument('N')), Argument('N'))
334 assert pattern.children[0].children[1] == pattern.children[1]
335 assert pattern.children[0].children[1] is not pattern.children[1]
336 pattern.fix_identities()
337 assert pattern.children[0].children[1] is pattern.children[1]
338
339
340def test_long_options_error_handling():

Callers

nothing calls this directly

Calls 4

RequiredClass · 0.90
OptionalClass · 0.90
ArgumentClass · 0.90
fix_identitiesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…