File: test_ifiles.py

package info (click to toggle)
python-dbfread 2.0.7-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 384 kB
  • sloc: python: 1,146; makefile: 140
file content (11 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
from .ifiles import *
from .ifiles import ipat

assert ipat('mixed') == '[Mm][Ii][Xx][Ee][Dd]'
assert ifnmatch('test', 'test') == True
assert ifnmatch('miXEdCaSe', 'mixedcase') == True
assert ifnmatch('CAMELCASE/CamelCase', 'CamelCase/UPPERCASE') == False

# Pattern with 
# assert ipat('[A]') == '[[Aa]]'