forked from osmocom/wireshark
22 lines
547 B
Python
22 lines
547 B
Python
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu>
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
import dfiltertest
|
|
|
|
class case_stringz(dfiltertest.DFTestCase):
|
|
trace_file = "tftp.pcap"
|
|
|
|
def test_stringz_1(self):
|
|
dfilter = 'tftp.type == octet'
|
|
self.assertDFilterCount(dfilter, 1)
|
|
|
|
def test_stringz_2(self):
|
|
dfilter = 'tftp.type == "octet"'
|
|
self.assertDFilterCount(dfilter, 1)
|
|
|
|
def test_stringz_3(self):
|
|
dfilter = 'tftp.type == junk'
|
|
self.assertDFilterCount(dfilter, 0)
|
|
|