コード例 #1
0
ファイル: hostmac_test.py プロジェクト: ericdorsey/HostMAC
 def test_nslooky_fails_on_wrong_argument(self):
     self.assertRaises(TypeError, hostmac.nslooky(
         ip=100, detected_os=hostmac.detect_os()))
コード例 #2
0
ファイル: hostmac_test.py プロジェクト: ericdorsey/HostMAC
 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
ファイル: hostmac_test.py プロジェクト: ericdorsey/HostMAC
 def test_nslooky_returns_string(self):
     self.assertEqual(str, type(hostmac.nslooky(
         ip="192.168.1.1", detected_os=hostmac.detect_os())))