aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite_dfilter/group_syntax.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite_dfilter/group_syntax.py')
-rw-r--r--test/suite_dfilter/group_syntax.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/suite_dfilter/group_syntax.py b/test/suite_dfilter/group_syntax.py
index 7e1cfdacfd..23b39052ac 100644
--- a/test/suite_dfilter/group_syntax.py
+++ b/test/suite_dfilter/group_syntax.py
@@ -30,3 +30,15 @@ class case_syntax(unittest.TestCase):
def test_value_string_1(self, checkDFilterSucceed):
dfilter = 'eth.fcs.status=="Bad"'
checkDFilterSucceed(dfilter)
+
+ def test_matches_1(self, checkDFilterSucceed):
+ dfilter = 'http.request.method matches "^HEAD"'
+ checkDFilterSucceed(dfilter)
+
+ def test_matches_2(self, checkDFilterFail):
+ dfilter = 'http.request.method matches HEAD'
+ checkDFilterFail(dfilter, '"HEAD" was unexpected in this context')
+
+ def test_matches_3(self, checkDFilterFail):
+ dfilter = 'http.request.method matches "^HEAD" matches "^POST"'
+ checkDFilterFail(dfilter, '"matches" was unexpected in this context.')