lua: add support for ethernet addresses to the Address class
[metze/wireshark/wip.git] / test / suite_dfilter / group_stringz.py
1 # Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu>
2 #
3 # SPDX-License-Identifier: GPL-2.0-or-later
4
5 from suite_dfilter import dfiltertest
6
7 class case_stringz(dfiltertest.DFTestCase):
8     trace_file = "tftp.pcap"
9
10     def test_stringz_1(self):
11         dfilter = 'tftp.type == octet'
12         self.assertDFilterCount(dfilter, 1)
13
14     def test_stringz_2(self):
15         dfilter = 'tftp.type == "octet"'
16         self.assertDFilterCount(dfilter, 1)
17
18     def test_stringz_3(self):
19         dfilter = 'tftp.type == junk'
20         self.assertDFilterCount(dfilter, 0)
21