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.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_filt.py b/test/test_filt.py
index 1cea34c4..4e059196 100644
--- a/test/test_filt.py
+++ b/test/test_filt.py
@@ -112,6 +112,12 @@ class TestMatching:
def q(self, q, o):
return filt.parse(q)(o)
+ def test_asset(self):
+ s = self.resp()
+ assert not self.q("~a", s)
+ s.response.headers["content-type"] = ["text/javascript"]
+ assert self.q("~a", s)
+
def test_fcontenttype(self):
q = self.req()
s = self.resp()