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

Method test_match_and_glob

Lib/test/test_zipfile/_path/test_path.py:472–480  ·  view source on GitHub ↗
(self, alpharep)

Source from the content-addressed store, hash-verified

470
471 @pass_alpharep
472 def test_match_and_glob(self, alpharep):
473 root = zipfile.Path(alpharep)
474 assert not root.match("*.txt")
475
476 assert list(root.glob("b/c.*")) == [zipfile.Path(alpharep, "b/c.txt")]
477 assert list(root.glob("b/*.txt")) == [
478 zipfile.Path(alpharep, "b/c.txt"),
479 zipfile.Path(alpharep, "b/f.txt"),
480 ]
481
482 @pass_alpharep
483 def test_glob_recursive(self, alpharep):

Callers

nothing calls this directly

Calls 3

matchMethod · 0.95
globMethod · 0.95
listClass · 0.85

Tested by

no test coverage detected