MCPcopy Index your code
hub / github.com/python/cpython / test_match_abbrev

Method test_match_abbrev

Lib/test/test_optparse.py:1601–1607  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1599
1600class TestMatchAbbrev(BaseTest):
1601 def test_match_abbrev(self):
1602 self.assertEqual(_match_abbrev("--f",
1603 {"--foz": None,
1604 "--foo": None,
1605 "--fie": None,
1606 "--f": None}),
1607 "--f")
1608
1609 def test_match_abbrev_error(self):
1610 s = "--f"

Callers

nothing calls this directly

Calls 2

_match_abbrevFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected