esp32_bluetooth_classic_sni.../libs/scapy/contrib/avs.uts
Matheus Eduardo Garbelini 86890704fd initial commit
todo: add documentation & wireshark dissector
2021-08-31 19:51:03 +08:00

19 lines
393 B
Text
Executable file

% Regression tests for the avs module
+ Basic AVS test
= Default build, storage and dissection
pkt = AVSWLANHeader()/Dot11()/Dot11Auth()
_filepath = get_temp_file(autoext=".pcap")
wrpcap(_filepath, pkt)
pkt1 = rdpcap(_filepath)[0]
assert raw(pkt) == raw(pkt1)
assert AVSWLANHeader in pkt
assert Dot11 in pkt
assert Dot11Auth in pkt
try:
os.remove(_filepath)
except Exception:
pass