summaryrefslogtreecommitdiff
path: root/tests/test_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_util.py')
-rw-r--r--tests/test_util.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_util.py b/tests/test_util.py
index a3607d5..ef59110 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -31,6 +31,11 @@ def test_pathmatch():
assert not util.pathmatch('**.py', 'templates/index.html')
assert util.pathmatch('**/templates/*.html', 'templates/index.html')
assert not util.pathmatch('**/templates/*.html', 'templates/foo/bar.html')
+ assert util.pathmatch('^foo/**.py', 'foo/bar/baz/blah.py')
+ assert not util.pathmatch('^foo/**.py', 'blah/foo/bar/baz.py')
+ assert util.pathmatch('./foo/**.py', 'foo/bar/baz/blah.py')
+ assert util.pathmatch('./blah.py', 'blah.py')
+ assert not util.pathmatch('./foo/**.py', 'blah/foo/bar/baz.py')
def test_odict_pop():