File: test_fnmatch.py

package info (click to toggle)
monty 2025.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 820 kB
  • sloc: python: 5,261; makefile: 136; sh: 20
file content (9 lines) | stat: -rw-r--r-- 180 bytes parent folder | download
1
2
3
4
5
6
7
8
9
from __future__ import annotations

from monty.fnmatch import WildCard


def test_match():
    wc = WildCard("*.pdf")
    assert wc.match("A.pdf")
    assert not wc.match("A.pdg")