def test_name_LIST(self): methods = NmapScanMethods() assert 'LIST' == methods.get_name_of_method('-sL')
def test_name_SYN(self): methods = NmapScanMethods() assert 'SYN' == methods.get_name_of_method('-sS')
def test_name_UDP(self): methods = NmapScanMethods() assert 'UDP' == methods.get_name_of_method('-sU')
def test_name_SCTP_COOKIE(self): methods = NmapScanMethods() assert 'SCTP_COOKIE' == methods.get_name_of_method('-sZ')
def test_name_TCP_NULL(self): methods = NmapScanMethods() assert 'TCP_NULL' == methods.get_name_of_method('-sN')
def test_name_IP(self): methods = NmapScanMethods() assert 'IP' == methods.get_name_of_method('-sO')
def test_name_SCTP_INIT(self): methods = NmapScanMethods() assert 'SCTP_INIT' == methods.get_name_of_method('-sY')
def test_name_XMAS(self): methods = NmapScanMethods() assert 'XMAS' == methods.get_name_of_method('-sX')
def test_name_TCP(self): methods = NmapScanMethods() assert 'TCP' == methods.get_name_of_method('')
def test_name_MAIMON(self): methods = NmapScanMethods() assert 'MAIMON' == methods.get_name_of_method('-sM')
def test_name_FIN(self): methods = NmapScanMethods() assert 'FIN' == methods.get_name_of_method('-sF')
def test_name_WINDOW(self): methods = NmapScanMethods() assert 'WINDOW' == methods.get_name_of_method('-sW')
def test_name_ACK(self): methods = NmapScanMethods() assert 'ACK' == methods.get_name_of_method('-sA')
def test_name_CONNECT(self): methods = NmapScanMethods() assert 'CONNECT' == methods.get_name_of_method('-sT')
def test_name_PING(self): methods = NmapScanMethods() assert 'PING' == methods.get_name_of_method('-sn')
def test_error_on_unknown_scan_method(self): with pytest.raises(NmapScanMethodUnknownException) as excinfo: methods = NmapScanMethods() methods.get_name_of_method('foo')