mirror of
https://github.com/nfstream/nfstream.git
synced 2026-05-22 03:03:29 +00:00
Minor Fix.
This commit is contained in:
parent
0406c680fd
commit
2b2801e4da
2 changed files with 3 additions and 3 deletions
|
|
@ -13,4 +13,4 @@ If not, see <http://www.gnu.org/licenses/>.
|
|||
------------------------------------------------------------------------------------------------------------------------
|
||||
"""
|
||||
|
||||
from .engine import create_engine
|
||||
from .engine import create_engine
|
||||
|
|
|
|||
4
tests.py
4
tests.py
|
|
@ -267,14 +267,14 @@ class TestMethods(unittest.TestCase):
|
|||
|
||||
print("{}\t: \033[94mOK\033[0m".format(".Test expiration management".ljust(60, ' ')))
|
||||
|
||||
def tunnel_decoding(self):
|
||||
def test_tunnel_decoding(self):
|
||||
print("\n----------------------------------------------------------------------")
|
||||
decode_streamer = NFStreamer(source='tests/gtp-u.pcap', statistical_analysis=True, decode_tunnels=True)
|
||||
for flow in decode_streamer:
|
||||
self.assertEqual(flow.tunnel_id, 1)
|
||||
decode_streamer.decode_tunnels = False
|
||||
for flow in decode_streamer:
|
||||
self.assertRaises(AttributeError, getattr(flow, "tunnel_id"))
|
||||
self.assertRaises(AttributeError, getattr, flow, "tunnel_id")
|
||||
del decode_streamer
|
||||
print("{}\t: \033[94mOK\033[0m".format(".Test tunnels decoding".ljust(60, ' ')))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue