aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dftestlib/stringz.py
blob: 100875c234ab47aa1b3ddc24e8ba7cb7f2406c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (c) 2013 by Gilbert Ramirez <gram@alumni.rice.edu>
#
# SPDX-License-Identifier: GPL-2.0-or-later


from dftestlib import dftest

class testStringz(dftest.DFTest):
    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)