diff --git a/test/nmap.uts b/test/nmap.uts index 3c64e7416..2c3d508d2 100644 --- a/test/nmap.uts +++ b/test/nmap.uts @@ -9,6 +9,14 @@ = Module loading load_module('nmap') += Test functions + +d = nmap_udppacket_sig(IP()/UDP(), IP(raw(IP()/ICMP(type=3, code=2)/IPerror()/UDPerror()))) +assert len(d) == 9 + +d = nmap_tcppacket_sig(IP()/TCP()) +assert len(d) == 5 + = Fetch database from __future__ import print_function try: