aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-02-23 20:20:27 +0000
committerJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2022-02-23 23:37:47 +0000
commitef31431aebf8a22a44bf5a97b576d108741c3e75 (patch)
tree87fdd227165a15645a6234d7f9f2bec925773632 /test
parent70d516368b4a097600456d1b8a636a501fc7bb9f (diff)
dfilter: Add a true/false boolean representation
Minor code cleanup.
Diffstat (limited to 'test')
-rw-r--r--test/suite_dfilter/group_syntax.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/suite_dfilter/group_syntax.py b/test/suite_dfilter/group_syntax.py
index 69d8f6fda8..436f78d46b 100644
--- a/test/suite_dfilter/group_syntax.py
+++ b/test/suite_dfilter/group_syntax.py
@@ -108,6 +108,14 @@ class case_syntax(unittest.TestCase):
dfilter = "'H' == frame[54]"
checkDFilterCount(dfilter, 1)
+ def test_bool_1(self, checkDFilterCount):
+ dfilter = "tcp.flags.push == 1"
+ checkDFilterCount(dfilter, 1)
+
+ def test_bool_2(self, checkDFilterCount):
+ dfilter = "tcp.flags.push == true"
+ checkDFilterCount(dfilter, 1)
+
@fixtures.uses_fixtures
class case_equality(unittest.TestCase):
trace_file = "sip.pcapng"