예제 #1
0
 def test_nslooky_fails_on_wrong_argument(self):
     self.assertRaises(TypeError, hostmac.nslooky(
         ip=100, detected_os=hostmac.detect_os()))
예제 #2
0
 def test_get_mac_returns_string(self):
     self.assertEqual(str, type(hostmac.get_mac(
         ip="192.168.1.1", detected_os=hostmac.detect_os())))
예제 #3
0
 def test_nslooky_returns_string(self):
     self.assertEqual(str, type(hostmac.nslooky(
         ip="192.168.1.1", detected_os=hostmac.detect_os())))