Beispiel #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)
Beispiel #2
0
 def test_consider_alive(self):
     ct = get_alive_test_from_string('Consider Alive')
     self.assertEqual(ct, AliveTest.CONSIDER_ALIVE)
Beispiel #3
0
 def test_arp_ping(self):
     ct = get_alive_test_from_string('ARP Ping')
     self.assertEqual(ct, AliveTest.ARP_PING)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #7
0
 def test_scan_config_default(self):
     ct = get_alive_test_from_string('Scan Config Default')
     self.assertEqual(ct, AliveTest.SCAN_CONFIG_DEFAULT)
Beispiel #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)
Beispiel #9
0
 def test_invalid(self):
     with self.assertRaises(InvalidArgument):
         get_alive_test_from_string('foo')