Skip to content
Snippets Groups Projects
Commit 02f22fc3 authored by Daniel Yang's avatar Daniel Yang
Browse files

Added more tests

parent 4275be21
No related branches found
No related tags found
No related merge requests found
import unittest
from scapy.layers.inet import IP, TCP
from unittest.mock import patch
from scapy.layers.l2 import Ether
from scapy.layers.l2 import Ether, ARP
from scapy.packet import Raw
from src.packet_capturing import packet_handler
......@@ -53,6 +54,5 @@ class TestPacketCapturing(unittest.TestCase):
packet_handler(packet)
mock_print.assert_any_call("Illegal packet with source or destination port 0.")
if __name__ == '__main__':
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment