Skip to content
Snippets Groups Projects
Commit 1306fd89 authored by gpotter2's avatar gpotter2 Committed by Guillaume Valadon
Browse files

Add tests

parent 61ef7074
No related branches found
No related tags found
No related merge requests found
......@@ -197,6 +197,12 @@ for i in ps_read_routes:
assert _correct
conf.prog.powershell = win_find_exe(
"powershell",
installsubdir="System32\\WindowsPowerShell\\v1.0",
env="SystemRoot"
)
= show_interfaces
from scapy.arch import show_interfaces
......@@ -223,3 +229,20 @@ assert test_show_interfaces()
from scapy.config import conf
assert dev_from_pcapname(conf.iface.pcap_name).guid == conf.iface.guid
= test pcap_service_status
status = pcap_service_status()
status
assert status[0] in ["npcap", "npf"]
assert status[2] == True
= test pcap_service_stop
pcap_service_stop()
assert pcap_service_status()[2] == False
= test pcap_service_start
pcap_service_start()
assert pcap_service_status()[2] == True
\ No newline at end of file
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