Exemplo n.º 1
0
 def test_nslooky_fails_on_wrong_argument(self):
     self.assertRaises(TypeError, hostmac.nslooky(
         ip=100, detected_os=hostmac.detect_os()))
Exemplo n.º 2
0
 def test_nslooky_returns_string(self):
     self.assertEqual(str, type(hostmac.nslooky(
         ip="192.168.1.1", detected_os=hostmac.detect_os())))