aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-06-25 12:54:16 +0100
committerJoão Valverde <j@v6e.pt>2022-06-25 13:02:34 +0100
commite9e6431d7b68e5ceacc41f3b3e1c8d290e55666b (patch)
treecc6d09b681190abb53fcac20b86c1495674d66e6 /test
parent229dad6a754c4c1840befafd7cc5917b36bd3f53 (diff)
dfilter: Change boolean string representation
Use "True" or "TRUE" instead of "true" and remove case insensivity. Same for false. This should serve to differentiate booleans a bit more from protocol names, which should be using lower-case.
Diffstat (limited to 'test')
-rw-r--r--test/suite_dfilter/group_syntax.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/suite_dfilter/group_syntax.py b/test/suite_dfilter/group_syntax.py
index 1d8d23ce8d..8327ba1d0c 100644
--- a/test/suite_dfilter/group_syntax.py
+++ b/test/suite_dfilter/group_syntax.py
@@ -112,9 +112,13 @@ class case_syntax(unittest.TestCase):
checkDFilterCount(dfilter, 1)
def test_bool_2(self, checkDFilterCount):
- dfilter = "tcp.flags.push == true"
+ dfilter = "tcp.flags.push == True"
checkDFilterCount(dfilter, 1)
+ def test_bool_2(self, checkDFilterCount):
+ dfilter = "tcp.flags.push == FALSE"
+ checkDFilterCount(dfilter, 0)
+
@fixtures.uses_fixtures
class case_equality(unittest.TestCase):
trace_file = "sip.pcapng"