Ejemplo n.º 1
0
 def test_icmp_tcp_ack_service_and_arp_ping(self):
     ct = get_alive_test_from_string('ICMP, TCP-ACK Service & ARP Ping')
     self.assertEqual(ct, AliveTest.ICMP_TCP_ACK_SERVICE_AND_ARP_PING)
Ejemplo n.º 2
0
 def test_consider_alive(self):
     ct = get_alive_test_from_string('Consider Alive')
     self.assertEqual(ct, AliveTest.CONSIDER_ALIVE)
Ejemplo n.º 3
0
 def test_arp_ping(self):
     ct = get_alive_test_from_string('ARP Ping')
     self.assertEqual(ct, AliveTest.ARP_PING)
Ejemplo n.º 4
0
 def test_icmp_and_arp_ping(self):
     ct = get_alive_test_from_string('ICMP & ARP Ping')
     self.assertEqual(ct, AliveTest.ICMP_AND_ARP_PING)
Ejemplo n.º 5
0
 def test_tcp_sync_service_ping(self):
     ct = get_alive_test_from_string('TCP-SYN Service Ping')
     self.assertEqual(ct, AliveTest.TCP_SYN_SERVICE_PING)
Ejemplo n.º 6
0
 def test_tcp_ack_service_ping(self):
     ct = get_alive_test_from_string('TCP-ACK Service Ping')
     self.assertEqual(ct, AliveTest.TCP_ACK_SERVICE_PING)
Ejemplo n.º 7
0
 def test_scan_config_default(self):
     ct = get_alive_test_from_string('Scan Config Default')
     self.assertEqual(ct, AliveTest.SCAN_CONFIG_DEFAULT)
Ejemplo n.º 8
0
 def test_none_or_empty(self):
     ct = get_alive_test_from_string(None)
     self.assertIsNone(ct)
     ct = get_alive_test_from_string('')
     self.assertIsNone(ct)
Ejemplo n.º 9
0
 def test_invalid(self):
     with self.assertRaises(InvalidArgument):
         get_alive_test_from_string('foo')