aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_filt.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_filt.py')
-rw-r--r--test/test_filt.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/test_filt.py b/test/test_filt.py
index 3cf0f6cd..036c1892 100644
--- a/test/test_filt.py
+++ b/test/test_filt.py
@@ -9,6 +9,9 @@ class uParsing(libpry.AutoTree):
x.dump(fp=c)
assert c.getvalue()
+ def test_err(self):
+ assert filt.parse("~h [") is None
+
def test_simple(self):
assert not filt.parse("~b")
assert filt.parse("~q")
@@ -20,9 +23,6 @@ class uParsing(libpry.AutoTree):
assert len(p.lst) == 2
def test_naked_url(self):
- #a = filt.parse("foobar")
- #assert a.lst[0].expr == "foobar"
-
a = filt.parse("foobar ~h rex")
assert a.lst[0].expr == "foobar"
assert a.lst[1].expr == "rex"
@@ -214,6 +214,9 @@ class uMatching(libpry.AutoTree):
assert not self.q("!~c 201 !~c 200", s)
+
+
+
tests = [
uMatching(),
uParsing()